hey guys.
Am using spring-framework-2.0-m2-with-dependencies-build.398-20060118.zip as a starting point for playing around with Hibernate EM and Spring support.
Question:
How do i get an EM from within a service bean extending JpaDaoSupport? I used the getEntityManager method of JpaDaoSupport and it returned null. I also tried getJpaTemplate().getEntityManager(). It also returned null.
thus this mean that i should just create an EM from the EM factory. But my guess is this wont participate in transactions that may be ongoing.


Reply With Quote