The Java Persistence API is a specification that describes an interface for managing relational databases using Java EE.
It eases data manipulation and reduces a lot of the code written for it, especially if you are used to SQL ANSI.
This recipe will show you how to use it to persist your data.