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

0 votes
1 answer
0 votes
1 answer
asked Apr 14, 2021 in DevOps and Agile by dev_sk2311 (45k points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...