But what is JPA ? it seems it is a persistence entity is a lightweight Java class whose state is typically persisted to a table in a relational database.
So what it does, it does what Hibernate was doing plus some more extra features. What are those features ? I am not sure yet, whenever I have hands on experience I will write here.
How to use it ?
Thanks to developers of EclipseLink, you can easily use that tool utilizing JPA within Eclipse for your project. For more information about EclipseLink, please visit their website.