PersistenceProvider implementations are not app specific.

Hibernate Validator uses

Persistence.getPersistenceUtil()

This in turn is a static reference object that in its method calls
Persistence.getProviders() *each time* to resolve operations like
isLoaded(entity).

So to answer your question, I think it's after.

On Fri 2014-09-12 17:02, Scott Marlow wrote:
> What triggers Hibernate Validator to call 
> PersistenceProviderResolver.getPersistenceProviders()?  Does this happen 
> during the call to 
> PersistenceProvider.createContainerEntityManagerFactory() or later after 
> application deployment completes?
> 
> I'm looking at changing 
> PersistenceProviderResolver.getPersistenceProviders() to cache the 
> results on a per deployment basis but need to know when the first call 
> will be made, so I don't break deployment of persistence providers in 
> the deployed application.
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to