Yeray Borges Santana created WFLY-13749:
-------------------------------------------
Summary: Add the bean-validation Galleon layer as an optional dependency for
jpa and jpa-distributed Galleon layers
Key: WFLY-13749
URL:
https://issues.redhat.com/browse/WFLY-13749
Project: WildFly
Issue Type: Task
Components: Build System, JPA / Hibernate
Reporter: Yeray Borges Santana
Assignee: Yeray Borges Santana
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.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)