Announcement Announcement Module
No announcement yet.
How to integrate Spring and Hibernate Entitymanager? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    That's because the spec is not final yet and the api is still undergoing changes. So for now we have to use it out of the sandbox.


    • #17
      Is the code in the sandbox currently compatible with the Spring 2.0M2 builds?

      I take it the code in the sandbox is not included in the nightly snapshots?


      • #18
        Originally posted by dth View Post
        Top work!

        I was extending JpaSupport (not JpaDaoSupport) and using getEntityManager() rather than using the JpaTemplate.

        All works now.. thanks for your help
        My DAO extend JpaDaoSupport and yet I get null when call getEntityManager().
        Do you mean I should use those "find" methods of JpaTemplate object, instead of using EntityManager? I thought that since we use JPA here anyway, than JpaTemplate uses EntityManager underneath, so why can't I get a reference to it?

        Is it because of different exception model? Using EntityManager directly implies dealing with checked exceptions as opposed to wraped exceptions, am I right?