Which version of Hibernate can I use with Java EE 5? Can I use the latest version?
Asked
Active
Viewed 1,934 times
2 Answers
1
Any. Neither JPA nor Hibernate restrict your choice of application server. They are independent.

Rick Mangi
- 3,761
- 1
- 14
- 17
-
What about the Java EE version? Is JPA 2 only supported by Java EE 6? If so, then I can't use it as Tomcat 6 only supports Java EE 5 correct? – Robert Jul 11 '12 at 21:36
-
1I guess OP question is related about JPA 1 or 2, Hibernate 1, 2, 3 or 4, for compatibility with Java SDK 5 or 6. – Luiggi Mendoza Jul 11 '12 at 21:37
-
@LuiggiMendoza Yes, I've updated the question again. Since I'm using Tomcat 6, I don't believe I need to know about EE 6. Thanks. – Robert Jul 11 '12 at 21:45
-
JPA is only vaguely related to JEE. It's just as much a stand alone technology and it doesn't have any dependency on a servlet container. You can use the classes on their own. – Rick Mangi Jul 12 '12 at 02:01
-
1@RickMangi JPA is not only vaguely related, it's a mandated part of Java EE. – Arjan Tijms Aug 05 '12 at 16:19
1
See http://www.hibernate.org/, it says that newest 4.1.4 version can be used with Java EE 5.

Arjan Tijms
- 37,782
- 12
- 108
- 140

Istvan Devai
- 3,962
- 23
- 21
-
thanks for answering my question, but I'm still slightly confused. From other questions asked on stackoverflow, I've come to realize that JPA 2.0 is not supported in a Java EE 5 environment, so if the latest version of Hibernate has a JPA 2.0 implementation will it still work in the environment that I'm working in? – Robert Jul 12 '12 at 20:25
-
-
Yes this should work, just include the Hibernate .jars and that's it. – Istvan Devai Jul 13 '12 at 07:07