|
Replies:
10
-
Last Post:
Aug 14, 2007 9:32 AM
by: mvatkina
|
|
|
|
|
|
|
Which JPA Implementations work?
Posted:
Jul 10, 2007 3:02 AM
|
|
|
Hello,
besides the included Toplink, which other JPA implementations work with Glassfish V2 beta 2 or newer? I tried Hibernate and OpenJPA according to some older blog entries that I found and apparently that information is outdated, as I'm getting exceptions all over the place when following the instructions.
So, are there any current experiences of switching from Toplink to another implementation?
Ulrich
|
|
|
|
|
|
|
Re: Which JPA Implementations work?
Posted:
Jul 10, 2007 6:39 AM
in response to: ulim
|
|
|
Hi, I'm using JPOX. It's open source (Apache 2.0 license) and supports both JPA and JDO standards.
In my project works fine.
ciao, Luca Garulli
|
|
|
|
|
|
|
|
Re: Which JPA Implementations work?
Posted:
Jul 10, 2007 8:16 AM
in response to: ulim
|
|
|
We track both OpenJPA and Hibernate; if there are problems plugging tghem in, we should try to fix them...
Copying the persistence alias.
- eduuard/o
glassfish@javadesktop.org wrote: > Hello, > > besides the included Toplink, which other JPA implementations work with Glassfish V2 beta 2 or newer? I tried Hibernate and OpenJPA according to some older blog entries that I found and apparently that information is outdated, as I'm getting exceptions all over the place when following the instructions. > > So, are there any current experiences of switching from Toplink to another implementation? > > Ulrich > [Message sent by forum member 'ulim' (ulim)] > > http://forums.java.net/jive/thread.jspa?messageID=225913 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net > For additional commands, e-mail: users-help@glassfish.dev.java.net > >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net
|
|
|
|
|
|
|
|
|
|
Re: Which JPA Implementations work?
Posted:
Aug 14, 2007 2:31 AM
in response to: ulim
|
|
|
Hello. All JPA implementations works in Glassfish. But the problem is that you must make sure that the library does not conflict between the current JPA implementations that is bundled with Glassfish (which is Toplink essentials). This is the tricky part to do
|
|
|
|
|
|
|
|
Re: Which JPA Implementations work?
Posted:
Aug 14, 2007 2:53 AM
in response to: thejavafreak
|
|
|
What sort of conflicts are you seeing? I have not come across any such issues while trying Hibernate or OpenJPA.
Thanks, Sahoo
glassfish@javadesktop.org wrote: > Hello. All JPA implementations works in Glassfish. But the problem is that you must make sure that the library does not conflict between the current JPA implementations that is bundled with Glassfish (which is Toplink essentials). This is the tricky part to do  > [Message sent by forum member 'thejavafreak' (thejavafreak)] > > http://forums.java.net/jive/thread.jspa?messageID=230776 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net > For additional commands, e-mail: users-help@glassfish.dev.java.net > >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net
|
|
|
|
|
|
|
|
Re: Which JPA Implementations work?
Posted:
Aug 14, 2007 5:13 AM
in response to: thejavafreak
|
|
|
I also used openJPA some time ago. I just neded to drop the jars into GF and modify the persistence provider property in my persistence.xml. It even was easily possible to switch between toplink and openJPA. From my experience I can say that the openJPA devs are very cooperative, if you have any trouble using openJPA.
Regards Heiko
|
|
|
|
|
|
|
|
Re: Which JPA Implementations work?
Posted:
Aug 14, 2007 5:52 AM
in response to: hewagn00
|
|
|
Using OpenJPA 0.97 with Glassfish, do I need to explictly enhance the entity classes using Enhancer or Glassfish take cares of this during deployment?
|
|
|
|
|
|
|
|
Re: Which JPA Implementations work?
Posted:
Aug 14, 2007 7:06 AM
in response to: mayankmishra
|
|
|
GlassFish takes care of enhancement during deployment.
Thanks, Sahoo glassfish@javadesktop.org wrote: > Using OpenJPA 0.97 with Glassfish, do I need to explictly enhance the entity classes using Enhancer or Glassfish take cares of this during deployment? > [Message sent by forum member 'mayankmishra' (mayankmishra)] > > http://forums.java.net/jive/thread.jspa?messageID=230810 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net > For additional commands, e-mail: users-help@glassfish.dev.java.net > >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net
|
|
|
|
|
|
|
|
|
|
Re: Which JPA Implementations work?
Posted:
Aug 14, 2007 9:32 AM
in response to: mayankmishra
|
|
|
If you are using Java EE style JPA access (injection or lookup), the enhancement will happen automatically on entities load. So this change should not affect you.
|
|
|
|
|