Repository navigation
Open
Labels
questionFurther information is requested
Description
Ask the Question
Hi team,
We are using the SAP Cloud SDK OData V2 generator to generate typed Java classes from SAP SuccessFactors OData V2 metadata.
After updating our EDMX using the complete $metadata response provided by our SuccessFactors tenant, generation succeeds, but compilation of the generated sources fails with:
[ERROR] .../target/vdm/.../User.java:[50,1] too many parameters
Environment:
Java 21
Spring Boot 3.5.x
SAP Cloud SDK 5.30.0
com.sap.cloud.sdk.datamodel:odata-generator-maven-plugin
OData V2 metadata from SAP SuccessFactors
Our generator configuration is approximately:
<plugin>
<groupId>com.sap.cloud.sdk.datamodel</groupId>
<artifactId>odata-generator-maven-plugin</artifactId>
<version>${sapCloudSdkVersion}</version>
<configuration>
<inputDirectory>${project.build.directory}/schema</inputDirectory>
<outputDirectory>${project.build.directory}/vdm</outputDirectory>
<packageName>ndb.ipaas.protocol.sf</packageName>
<defaultBasePath>odata/v2/</defaultBasePath>
<compileScope>COMPILE</compileScope>
<serviceMethodsPerEntitySet>true</serviceMethodsPerEntitySet>
</configuration>
</plugin>
The SuccessFactors User entity in the complete metadata is very large. In our metadata it contains approximately:
146 regular properties
156 navigation properties
approximately 302 members in total
The generated User.java therefore appears to exceed the Java/JVM method parameter limit in one of the generated methods/constructors.
As a workaround, we reduced the User metadata to only the properties and navigation properties required by our integrations. After reducing the entity, the generated code compiles successfully.
We specifically need navigation such as:
User
├─ empInfo
└─ userOfONB2ProcessNav
└─ ONB2Process
└─ toEquipmentActivity
└─ ONB2EquipmentActivity
After trimming the metadata, these generated typed navigation properties work correctly.
Questions:
Is this a known limitation of the SAP Cloud SDK OData V2 generator when an entity such as SuccessFactors User contains a very large number of properties/navigation properties?
Is there a generator configuration that prevents generation of the large constructor/method causing the too many parameters compilation error?
Is there a recommended approach for SuccessFactors metadata specifically, where entities such as User can expose a very large number of navigation properties?
We can provide the relevant EDMX section if required.
Thanks.
Metadata
Metadata
Assignees
Labels
questionFurther information is requested
Activity