Migration notes 2.0.0
Migrate to 2.0.0
Upgrading from version 1.5.0, see Sign-off API 2.0.0 Release Notes.
Upgrade of dependencies
The dependencies in the POM file fo the project have been upgraded to be compatible with ActivePivot 6.0-RC. In particular, the tools-parent-pom parent pom has been upgraded to version 1.3.0, and the common-dependencies-bom dependency has been upgraded to 2.0.0.
DTO changes
ActivePivot 6.0 upgraded to Jackson 2.13.4. As a consequence, some changes had to be made to some of the DTOs in the project.
DTO | Details |
---|---|
TypedFieldDTO | @JsonInclude(JsonInclude.Include.ALWAYS) annotation added to the levelPath field |
NamedValueDTO | @JsonIgnoreProperties(ignoreUnknown=true) annotation added to the DTO class |
REST Services changes
In ActivePivot 6.0, all REST services have been migrated to Spring MVC. This has changed the way DTOs are returned in the Signoff-ext dependency. Previously, the REST services returned DTOs wrapped into a Response object, which contained the HTTP status of the response, and the DTO as a data attribute. Due to the change, DTOs are now returned directly.
The following classes are impacted:
- IAdjustmentRestService: this interface is now using @RequestMapping annotation and all methods are using @GetMapping or @PostMapping annotations and return DTOs instead of Response objects.
- AdjustmentRestService: methods implementing the IAdjustmentRestService now return DTOs instead of Response objects.
- ISignOffRestService: this interface is now using @RequestMapping annotation and all methods are using @PutMapping or @PostMapping annotations and return DTOs instead of Response objects.