This content has been marked as final. Show 3 replies
Here is the implementation of the Persistence Extension which uses hibernate SessionFactory or EntityManagerFactory obtained from JNDI. It's tested with EntityManagerFactory. Lookup to the jndi is done on the first call of merge or clone methods, because during errai bootstrap, jndi tree is not ready yet.