[hibernate-dev] Feedback on the idea of PersistenceProviderResolver.getPersistenceProviders() caching the same org.hibernate.ejb.HibernatePersistence class instance for multiple application deployments to share ...
Emmanuel Bernard
emmanuel at hibernate.org
Wed Sep 17 05:22:34 EDT 2014
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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
More information about the hibernate-dev
mailing list