persistence@glassfish.java.net

Re: JPA 2.0 Maven Artifact

From: Mitesh Meswani <mitesh.meswani_at_oracle.com>
Date: Tue, 27 Jul 2010 05:06:46 -0700

  Just wanted to clarify couple of points
1. EcliseLink maven repo location:
Refer to http://wiki.eclipse.org/EclipseLink/Maven for official location
of the repo. The location below points to one of the mirrors directly.

2. vendor-dependency:
Obviously all the interface definition will be identical between
javax.persitence.jar from various vendors. The difference may be in
extensions provided by verndors. For example EclipseLink's
javax.pesitence.jar is capable of functioning inside OSGI environment.

Thanks,
Mitesh

On 7/27/2010 4:48 AM, Petr Jiricka wrote:
> Hi Lexi,
>
> the truth is that your persistence implementation will be
> vendor-dependent (you have to make a choice between Hibernate,
> EclipseLink and Kodo), so you will end up with vendor-dependent code
> anyway. For example, when using EclipseLink, you would normally use:
>
> ftp://ftp.ing.umu.se/mirror/eclipse/rt/eclipselink/maven.repo/org/eclipse/persistence/javax.persistence/2.0.1/
>
> ftp://ftp.ing.umu.se/mirror/eclipse/rt/eclipselink/maven.repo/org/eclipse/persistence/eclipselink/2.1.0/
>
>
> I.e. add repository:
>
> <repository>
> <url>http://ftp.ing.umu.se/mirror/eclipse/rt/eclipselink/maven.repo</url>
> <id>eclipselink</id>
> <layout>default</layout>
> <name>Repository for library Library[eclipselink]</name>
> </repository>
>
> Then you can use javax.persistence as:
>
> <dependency>
> <groupId>org.eclipse.persistence</groupId>
> <artifactId>javax.persistence</artifactId>
> <version>2.0.0</version>
> </dependency>
>
> Petr
>
> On Jul 27, 2010, at 8:14 AM, Aleksei Valikov wrote:
>
>> Hi,
>>
>> I'm looking for the JPA 2.0 Maven artifact. Analogous to
>> javax.persistence:persistence-api:1.0 here
>>
>> http://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/
>>
>> I was expecting something like javax.persistence:persistence-api:2.0,
>> but there isn't any. Hibernate uses something like
>> org.hibernate.javax.persistence:hibernate-jpa-2.0-api - a bit too
>> vendor-specific for my taste.
>>
>> What would be the standard artifact to use?
>>
>> Bye.
>> /lexi
>