Hannes
Hannes

Reputation: 5262

Is there a JAR containing only the Annotations from JPA?

I would like to use the JPA annotations but I don't need any JPA implementation. Where can I get the from? I didn't find anything at Oracle's Java pages ...

Upvotes: 1

Views: 1100

Answers (1)

Sotirios Delimanolis
Sotirios Delimanolis

Reputation: 280030

The following maven artifact contains the javax.persistence types.

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

You can get the binaries here. Don't be fooled by the hibernate name, it does not contain any implementation.

Upvotes: 6

Related Questions