Skip to main content

REST Expanders 3.7.0

· 2 min read
Frédéric Hannes
Frédéric Hannes
R&D Engineer

Changes and improvements

UniqueConstraints

This version of rest-expanders introduces initial support for the new UniqueConstraints added to the elements model. Though at this time the isUnique option will not yet be replaced by these constraints, if they are added to the model and fail validation, they will be correctly mapped to unique constraint validation errors in the REST API.

Known issues

  • This release breaks the DiagnosticInterceptor interface. This can affect implementations of the class in custom code that override the intercept(Diagnostic) method that was removed. Version 3.8.0 has a fix for backwards compatibility, though refactoring the custom class would be the preferred solution.

Migration guide

Classes migrated to shared library

Some additional classes have been moved to the shared library, instead of being expanded. To migrate code to use these moved classes (when relevant), it should suffice to rename the packages of the classes, as the classes themselves have not been renamed.

The classes were renamed as follows:

  • CONTROL_LAYER:
    • <componentName>.jaxrs.command.DiagnosticInterceptor
      net.democritus.jaxrs.command.DiagnosticInterceptor
    • <componentName>.jaxrs.command.CompositeDiagnosticInterceptor
      net.democritus.jaxrs.command.CompositeDiagnosticInterceptor
    • <componentName>.jaxrs.command.CreationFailedInterceptor
      net.democritus.jaxrs.command.CreationFailedInterceptor
    • <componentName>.jaxrs.command.DeletionFailedInterceptor
      net.democritus.jaxrs.command.DeletionFailedInterceptor
    • <componentName>.jaxrs.command.ModificationFailedInterceptor
      net.democritus.jaxrs.command.ModificationFailedInterceptor
    • <componentName>.jaxrs.command.SearchFailedInterceptor
      net.democritus.jaxrs.command.SearchFailedInterceptor
    • <componentName>.jaxrs.command.IllegalDBStateInterceptor
      net.democritus.jaxrs.command.IllegalDBStateInterceptor