We need to build an EntityManagerFactory. From there we can access SessionFactory and other hibernate classes for a smooth migration.
remember PersistenceException from bootstrap and re-throw on getCurrentEntityManager()
fixed rollback in certain cases
do not use SessionFactory in MCRTilingAction
do not use SessionFactory to get current session
do not close EntityManager if hibernate Session is already closed
We need to build an EntityManagerFactory. From there we can access SessionFactory and other hibernate classes for a smooth migration.