The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » GlassFish

Thread: Which JPA Implementations work?

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 10 - Last Post: Aug 14, 2007 9:32 AM by: mvatkina
ulim

Posts: 32
Which JPA Implementations work?
Posted: Jul 10, 2007 3:02 AM
  Click to reply to this thread Reply

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

lvca

Posts: 1
Re: Which JPA Implementations work?
Posted: Jul 10, 2007 6:39 AM   in response to: ulim
  Click to reply to this thread Reply

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

Eduardo Pelegri...
Re: Which JPA Implementations work?
Posted: Jul 10, 2007 8:16 AM   in response to: ulim
  Click to reply to this thread Reply

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


mvatkina

Posts: 755
Re: Which JPA Implementations work?
Posted: Jul 10, 2007 12:53 PM   in response to: ulim
  Click to reply to this thread Reply

Hi Ulrich,

What exceptions do you get? Mitesh checked that GlassFish still works correctly with OpenJPA about a month ago: http://blogs.sun.com/GlassFishPersistence/entry/using_apache_openjpa_with_glassfish.

thanks,
-marina

thejavafreak

Posts: 3
Re: Which JPA Implementations work?
Posted: Aug 14, 2007 2:31 AM   in response to: ulim
  Click to reply to this thread Reply

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 :)

Sahoo
Re: Which JPA Implementations work?
Posted: Aug 14, 2007 2:53 AM   in response to: thejavafreak
  Click to reply to this thread Reply

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


hewagn00

Posts: 48
Re: Which JPA Implementations work?
Posted: Aug 14, 2007 5:13 AM   in response to: thejavafreak
  Click to reply to this thread Reply

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

mayankmishra

Posts: 14
Re: Which JPA Implementations work?
Posted: Aug 14, 2007 5:52 AM   in response to: hewagn00
  Click to reply to this thread Reply

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?

Sahoo
Re: Which JPA Implementations work?
Posted: Aug 14, 2007 7:06 AM   in response to: mayankmishra
  Click to reply to this thread Reply

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


mayankmishra

Posts: 14
Re: Which JPA Implementations work?
Posted: Aug 14, 2007 9:15 AM   in response to: Sahoo
  Click to reply to this thread Reply

Thanks Sahoo! :)
Moreover, after SVN 560016 [1], enhancement has been made optional, though upto my undestanding they yet to test it against CTS.

[1]. http://openjpa.apache.org/2007/07/28/enhancement-now-optional-for-openjpa.html

mvatkina

Posts: 755
Re: Which JPA Implementations work?
Posted: Aug 14, 2007 9:32 AM   in response to: mayankmishra
  Click to reply to this thread Reply

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.




 XML java.net RSS