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

JPA should allow for a bean validator factory per persistence unit or per application deployment

XMLWordPrintable

      Currently, a new bean validator factory instance is associated with each deployed persistence unit. This jira calls for adding a new PU property that specifies that a 'per app bean validator factory' should be used for a persistence unit (via a persistence unit property).

      This can be controlled by a new persistence unit property (see existing ones here).

      The new property can be something like "org.jboss.as.jpa.shareValidatorFactory" which defaults to false.

      Look at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit() to make this change.

            Unassigned Unassigned
            smarlow1@redhat.com Scott Marlow
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: