Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-13749

Add the bean-validation Galleon layer as an optional dependency for jpa and jpa-distributed Galleon layers

    Details

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  yersan Yeray Borges Santana
                  Reporter:
                  yersan Yeray Borges Santana
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: