-
Task
-
Resolution: Done
-
Major
-
None
-
None
Bean validation is not provisioned by default by the jpa / jpa-distributed Galleon layers. Users have to add this layer to their provisioning configuration to make Bean Validation work out of the box with a JPA deployment.
Adding the bean-validation Galleon layer to jpa / jpa-distributed Galleon layers will make bean validation work with a JPA application out of the box.
As a result of this task:
- If the user excludes the bean-validation Galleon layer from jpa / jpa-distributed Galleon layers, the deployment will succeed but bean validation won't work in the application code, because by default JPA uses ValidationMode.AUTO
- If the user excludes the bean-validation Galleon layer from jpa / jpa-distributed Galleon layers, and configures JPA with ValidationMode.CALLBACK, the deployment will fail because the persistent provider will thrown an exception.
- relates to
-
WFLY-13734 JPA subsystem should fail deployment if ValidationMode.CALLBACK is configured but the BV capability is not present
- Closed