jar file for JPA 2.0

后端 未结 5 1233
我寻月下人不归
我寻月下人不归 2020-12-19 04:24
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Root;

I\'ve c

相关标签:
5条回答
  • 2020-12-19 05:06

    Here is hibernate-jpa-2.0

    http://repository.jboss.org/maven2/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/

    0 讨论(0)
  • 2020-12-19 05:10

    Try the Geronimo specs JPA2 jar http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/geronimo/specs/geronimo-jpa_2.0_spec/1.0-PFD2/ There is still no official JPA2.jar

    0 讨论(0)
  • 2020-12-19 05:15

    These files are found in the javax.persistence jar file. The Eclipse version of the javax.persistence jar file can be found on Maven Central. Or you can add the following dependency in your project's pom.xml file to get Maven to pull it down for you.

        <dependency>
            <groupId>org.eclipse.persistence</groupId>
            <artifactId>javax.persistence</artifactId>
            <version>2.1.1</version>
            <scope>compile</scope>
        </dependency>
    
    0 讨论(0)
  • 2020-12-19 05:16

    A slightly better answer (since 2011) is to use the one from maven central, i.e.,

    org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.1-Final
    

    OR

    <groupId>org.hibernate.javax.persistence</groupId>
    <artifactId>hibernate-jpa-2.0-api</artifactId>
    <version>1.0.1.Final</version>
    

    See: http://repo1.maven.org/maven2/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.1.Final/

    For all the available versions, especially the latest, see http://repo1.maven.org/maven2/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/

    0 讨论(0)
  • 2020-12-19 05:21

    EclipseLink provides the JPA 2.0 Reference Implementation which is officially out since Java EE 6 is out. You'll find these classes in the jars bundled in eclipselink-2.0.0.v20091127-r5931.zip. If you are looking for a Maven repo, have a look at this page.

    0 讨论(0)
提交回复
热议问题