Spring Version Update
With this release, the Spring Framework version is updated to the
4.3.2.RELEASE. Update the version you use accordingly.
Service Generation Issues Resolved
To resolve a number of Service Generator issues without breaking existing code, a new feature flag called
compatibilityModeEnabled is available and is enabled by default. You must explicitly disable the flag to make the fixes take effect. To do so, configure the plug-in as shown:
<execution> <id>service-generation</id> <goals> <goal>generate-service</goal> </goals> <configuration> ... <compatibilityModeEnabled>false</compatibilityModeEnabled> </configuration> </execution>
The details of the fixes included in the feature flag are described as follows.
With this release, a new feature generates enumeration classes as inner classes with the Service Generator. This improves readability and helps to avoid mapping conflicts when the same attribute name is used within multiple DTOs.
DTOs Definition Generation
DTOs that are generated for nested schemas are named after the referenced schema name instead of the first occurring reference name. That enables better naming when the same schema is referenced in multiple places.
Validation of lists
@Valid annotation is generated in Jersey resources in front of DTOs that are mapped form JSON arrays to Java
Lists, as long as the
List type is a JSON object that itself requires validation itself.
If you find any information that is unclear or incorrect, please let us know so that we can improve the Dev Portal content.
Use our private help channel. Receive updates over email and contact our specialists directly.
If you need more information about this topic, visit hybris Experts to post your own question and interact with our community and experts.