Annotation 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

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
     
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Gets the entity class, where the view entity field is mapped
    The field, specified in the clazz attribute class (entity), where the view entity field value will be mapped during persisting.
  • Element Details

    • clazz

      Class<?> clazz
      Gets the entity class, where the view entity field is mapped
      Returns:
      The entity class
    • fieldName

      String fieldName
      The field, specified in the clazz attribute class (entity), where the view entity field value will be mapped during persisting.
      Returns:
      The entity field name