Annotation Type KeyComponent
-
@Target(TYPE_PARAMETER) @Retention(SOURCE) public @interface KeyComponent
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringconstantUsed to define a key component that should never vary (such as an entity type).java.lang.StringnameThe name of the key component, used to generate the method name for the corresponding step in the KeyBuilder.java.lang.Class<?>typeThe type of the key component, used as the method parameter for the corresponding step in the KeyBuilder.
-
-
-
Element Detail
-
name
java.lang.String name
The name of the key component, used to generate the method name for the corresponding step in the KeyBuilder. Must be defined ifconstant()is not set. Ignored whenconstant()is set.- Returns:
- The key component name
- Default:
- ""
-
-
-
type
java.lang.Class<?> type
The type of the key component, used as the method parameter for the corresponding step in the KeyBuilder. Ignored whenconstant()is set.- Returns:
- The key component type
- Default:
- java.lang.String.class
-
-