Is there a way to turn a normal Eclipse Project into a JPA Project?
I have a normal project with Entities in it and a Persistence.xml file, but it is not an eclipse recognized JPA project. What can I do?
The Java Persistence API, sometimes referred to as JPA, is a Java programming language specification which describes the management of relational data in applications using Java Platform, Standard Edition and Java Platform, Enterprise Edition.
project properties --> project facets. There you can click on the JPA check-box and you have an JPA project.
You could also Right Click the eclipse project and click on configure which allows you to convert to a JPA project.
You'll want to modify:
As Chris Nava said, the best way to do that is to create an empty JPA project and compare it with yours.
I found it is sometimes necessary to delete your original project (do not "delete project content on disk" !) and reimport it to make Eclipse happy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With