Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Java by (7k points)

Can someone tell me how can I write the dependency for java.persistence

1 Answer

0 votes
by (13.1k points)

Use this for javax.persistence:

<dependency>

   <groupId>javax.persistence</groupId>

   <artifactId>persistence-api</artifactId>

   <version>1.0.2</version>

   <scope>provided</scope>

</dependency>

And use this for whole Java EE 6:

<dependency>

   <groupId>javax</groupId>

   <artifactId>javaee-api</artifactId>

   <version>6.0</version>

   <scope>provided</scope>

</dependency>

Want to learn Java? Check out the core Java certification from Intellipaat. 

Related questions

1.2k questions

2.7k answers

501 comments

693 users

Browse Categories

...