Last time I wanted to add JPA 2 to my existing maven project, I just clicked New -> Entity Class.
It not only helped me to create persistent.xml file, but it also added all necessary libraries to my pom as dependencies.
It not only helped me to create persistent.xml file, but it also added all necessary libraries to my pom as dependencies.
<dependency> <groupId>org.eclipse.persistence</groupId> <artifactId>eclipselink</artifactId> <version>2.2.0</version> </dependency> <dependency> <groupId>org.eclipse.persistence</groupId> <artifactId>javax.persistence</artifactId> <version>2.0.3</version> </dependency> <dependency> <groupId>asm</groupId> <artifactId>asm</artifactId> <version>3.3</version> </dependency> <dependency> <groupId>org.eclipse.persistence</groupId> <artifactId>org.eclipse.persistence.jpa.modelgen.processor</artifactId> <version>2.2.0</version> <scope>provided</scope> </dependency>
No comments:
Post a Comment