注释类型 | 说明 |
---|---|
Cacheable |
Specifies whether an entity should be cached if caching is enabled
when the value of the
persistence.xml caching element
is ENABLE_SELECTIVE or DISABLE_SELECTIVE . |
Column |
Specifies the mapped column for a persistent property or field.
|
Entity |
Specifies that the class is an entity.
|
GeneratedValue |
Provides for the specification of generation strategies for the
values of primary keys.
|
Id |
Specifies the primary key of an entity.
|
Index |
Used in schema generation to specify creation of an index.
|
Table |
Specifies the primary table for the annotated entity.
|
Transient |
Specifies that the property or field is not persistent.
|
UniqueConstraint |
Specifies that a unique constraint is to be included in
the generated DDL for a primary or secondary table.
|