This annotation specifies that the class is an entity.
The class name of the entity class does not include the package name. Note the following points during specification:
The applicable target is class.
The following table lists the elements of @Entity:
Element name | Optional/Required | Element description |
---|---|---|
name | Optional | This element specifies a logical name for the entity class. It becomes an abstract schema name in JPQL. |
The details of attributes that are supported with Cosminexus JPA provider are as follows: