Tuesday, April 15, 2008

Getting jdbc connection from entity manager

org.hibernate.ejb.EntityManagerImpl emImpl = (org.hibernate.ejb.EntityManagerImpl) em;
Connection connection = emImpl.getSession().connection();

No comments: