Package com.blazebit.persistence.view
Annotation Type EntityViewListener
@Target(TYPE) @Retention(RUNTIME) public @interface EntityViewListener
Annotation to declare an entity view listener that should be registered for the given entity view type.
- Since:
- 1.4.0
- Author:
- Christian Beikov
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<?>
entity
The entity class for which to register this listener.Class<?>
entityView
The entity view class for which to register this listener.
-
Element Details
-
entityView
Class<?> entityViewThe entity view class for which to register this listener. When using the default,Object
, the listener is only registered for view types that are compatible with the type variable assignment.- Returns:
- The entity view class
- Default:
- java.lang.Object.class
-
entity
Class<?> entityThe entity class for which to register this listener. When using the default,Object
, the listener is only registered for entity types that are compatible with the type variable assignment.- Returns:
- The entity class
- Default:
- java.lang.Object.class
-