Annotation Interface MappedField
@Target(FIELD)
@Retention(RUNTIME)
@Repeatable(List.class)
@Documented
public @interface MappedField
When querying view entities, it must be specified, which view entity field corresponds to which entity field. This can be specified with this annotation.
The field, that will have this annotation in the view entity, and exists the ViewEntity
annotation is on the class, the application, during the persisting, will map it to the entity,
based on the annotation's attributes.
When querying the view entities, this annotation will not be processed, since for querying the view, no custom application logic is needed.
The annotation has two attributes, clazz and fieldName. Both has to have a value specified, otherwise an AnnotationFormatError
error will be thrown during the persisting.
- Since:
- 4.0
- Author:
- JBStrap
- See Also:
-
Nested Class Summary
-
Required Element Summary
-
Element Details