Annotation Interface Join


@Retention(RUNTIME) @Target({METHOD,FIELD}) public @interface Join
Indicates that the property value is set by joining from another table (pojo class). You may use this on a single object (one to one, many to one), or on a collection (one to many, many to many). If joining to a collection, make sure that you instantiate it as a modifiable collection. Persism will not do that fo you.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Comma seperated property names whose values are used to join to the target table.
    Class of the POJO that this class joins to.
    Comma seperated property names whose values are used to join to the parent table.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Indicates that you use String primary/foreign key values in your DB which are case-sensitive.
  • Element Details

    • to

      Class<?> to
      Class of the POJO that this class joins to.
      Returns:
      target POJO Class
    • onProperties

      String onProperties
      Comma seperated property names whose values are used to join to the target table.
      Returns:
      property names
    • toProperties

      String toProperties
      Comma seperated property names whose values are used to join to the parent table.
      Returns:
      property names
    • caseSensitive

      boolean caseSensitive
      Indicates that you use String primary/foreign key values in your DB which are case-sensitive. Default false.
      Returns:
      case-sensitive
      Default:
      false