我正在尝试按照 SDK 教程中的步骤 20 创建一个实体。但是当我使用命令构建项目时mvn clean install
我添加了https://help.sap.com/http.svc/rc/05fbf11f8ccc403dba4f90150e8f4ccf/1.0/en-US/index.html?com/sap/cloud/sdk/s4hana/datamodel/odata中可用的以下导入 /namespaces/package-summary.html
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.businesspartner.AddressEmailAddress;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.businesspartner.BusinessPartnerAddress;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.businesspartner.BusinessPartnerRole;
我看到以下错误。
[错误] /C:/Users/sanke/workspace/Businesspartners_cloudfoundry/application/src/main/java/com/yash/cf/Businesspartners_cloudfoundry/BusinessPartnerServlet.java:[81,17] toEmailAddress(java.util.List) 有私有访问 com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.businesspartner.BusinessPartnerAddress.BusinessPartnerAddressBuilder [错误] /C:/Users/sanke/workspace/Businesspartners_cloudfoundry/application/src/main/java/com/yash/ cf/Businesspartners_cloudfoundry/BusinessPartnerServlet.java:[93,17] toBusinessPartnerAddress(java.util.List) 在 com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.businesspartner.BusinessPartner.BusinessPartnerBuilder [ERROR] / C:/Users/sanke/workspace/Businesspartners_cloudfoundry/application/src/main/java/com/yash/cf/Businesspartners_cloudfoundry/BusinessPartnerServlet。java:[94,17] toBusinessPartnerRole(java.util.List) 在 com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.businesspartner.BusinessPartner.BusinessPartnerBuilder 中具有私有访问权限