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:
On Jul 27, 2010, at 8:14 AM, Aleksei Valikov wrote:
> 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?