That Java annotation defines the strategy that the annotated object will use.
This means that, for example, if you have a class Employee , it will be permanent, and the way that its primary key is generated will have a mechanism called IDENTITY , which automatically creates the following value for you,
This whole part of the API is called the Java Persistence API.
source share