temporary « Interceptor « JPA Q&A





1. interceptor / temporary entityManger    forum.hibernate.org

In my interceptor I need to persist some entities: thus I need a new hibernate session that shares the same JDBC connection with the original session - that's ok and this works in my tests. Now I'd like to reuse the methods of my existing DAOs, which all use an entity-manager. Is there a way to wrap the temporary session in ...