[hibernate-dev] WFLY-2387 would it be possible to delay registering entity listeners to occur after EntityManagerFactoryBuilder.build() returns the EMF?

Scott Marlow smarlow at redhat.com
Tue Nov 5 18:38:14 EST 2013


WFLY-2387 is asking for EntityListeners to be able to (CDI) inject the 
PersistenceUnit associated with the entity class.

WFLY-2387 mentions that the Hibernate persistence unit needs to be 
available (for injection use) before EntityManagerFactoryBuilder.build() 
registers the entity listeners.

Would it be possible to introduce a (EntityManagerFactoryBuilder) post 
bootstrap phase that registers the entity listeners?

Scott


More information about the hibernate-dev mailing list