@Target(value=TYPE)
@Retention(value=SOURCE)
public @interface Entity
| Modifier and Type | Required Element and Description |
|---|---|
KeyComponent[] |
keyComponents
An array of
KeyComponents that will be used to generate a KeyBuilder that always generates a suitable key
for this entity. |
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
keyDelimiter |
public abstract KeyComponent[] keyComponents
KeyComponents that will be used to generate a KeyBuilder that always generates a suitable key
for this entity.
At least one KeyComponent must 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.public abstract java.lang.String keyDelimiter
keyComponents() for all entites of the annotated type.