This content has been marked as final.
Show 2 replies
-
1. Re: EntityManager OR Hibernate Session
swd847 May 14, 2009 11:31 AM (in response to tathagat)EntityManager is standards compliant, so theoretically you can change to any other JPA implementation.
Session provides more features but is non portable.
-
2. Re: EntityManager OR Hibernate Session
tathagat May 14, 2009 4:08 PM (in response to tathagat)Thanks!
I also realized that it is easier to use Hibernate Session as I do not need to set JNDI. Neither do I need to put some extra libs in Tomcat6/lib folder.
Makes it very portable to use in another web server, for example Jetty.
Cheers