Annotation Type Entity
-
@Retention(RUNTIME) @Target(TYPE) public @interface Entity
Annotation to mark a class as an entity. An entity is a persistent class which can be stored in anObjectRepository
.- Since:
- 4.0
- Author:
- Anindya Chatterjee
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Index[]
indices
A list of indices for the repository.String
value
Name of theObjectRepository
.
-
-
-
Element Detail
-
value
String value
Name of theObjectRepository
. By default, the name would be the class name of the entity.- Returns:
- the name
- Default:
- ""
-
-
-
indices
Index[] indices
A list of indices for the repository.- Returns:
- the index definitions
- Default:
- {}
-
-