Running JPA 1 & 2 in same Process [message #842843] |
Thu, 12 April 2012 13:02  |
Eclipse User |
|
|
|
I have a project running EclipseLink 2.x. The ejb jar has a JPA 2.0 persistence.xml, but it also has another jar that has a persistence.xml file declared to require JPA 1.0. The question is, can EclipseLink run 2 different persistence units, one in JPA 2, the other in JPA 1 mode? Or will it cause one to run in the other one's mode?
WebLogic 10.3.5
JDK 1.6
JDeveloper 11g
Oracle 9, Thin Driver, non XA DataSource
|
|
|
Re: Running JPA 1 & 2 in same Process [message #843890 is a reply to message #842843] |
Fri, 13 April 2012 09:19  |
Eclipse User |
|
|
|
Hello,
EclipseLink, and JPA 2.0 are both backward compatible, so you should be able to run your JPA 1.0 application using the 2.0 persistence.jar. There is no 1.0 jpa mode or change in EclipseLink behavior, the only difference is that the 2.0 persistence jar exposes more api than the 1.0 jpa persitence jar.
Best Regards,
Chris
|
|
|
Powered by
FUDForum. Page generated in 0.10635 seconds