@Target(value=TYPE_PARAMETER)
@Retention(value=SOURCE)
public @interface KeyComponent
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
constant
Used to define a key component that should never vary (such as an entity type).
|
java.lang.String |
name
The name of the key component, used to generate the method name for the corresponding step in the KeyBuilder.
|
java.lang.Class<?> |
type
The type of the key component, used as the method parameter for the corresponding step in the KeyBuilder.
|
public abstract java.lang.String name
constant() is not set.
Ignored when constant() is set.public abstract java.lang.Class<?> type
constant() is set.public abstract java.lang.String constant
name() is not set.
When defined, then name() and type() are ignored.