Annotation Type Entity
-
@Target(TYPE) @Retention(SOURCE) public @interface Entity
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description KeyComponent[]keyComponentsAn array ofKeyComponents that will be used to generate a KeyBuilder that always generates a suitable key for this entity.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringkeyDelimiter
-
-
-
Element Detail
-
keyComponents
KeyComponent[] keyComponents
An array ofKeyComponents that will be used to generate a KeyBuilder that always generates a suitable key for this entity. At least oneKeyComponentmust be defined. It is up to the programmer to define key formats that will not collide with one another. This annotation is constructed for easy readability for code reviews.- Returns:
- An array of key components
-
-
-
keyDelimiter
java.lang.String keyDelimiter
- Returns:
- The delimiter used to join the
keyComponents()for all entites of the annotated type.
- Default:
- "::"
-
-