Annotation Type JoinEntity


  • @Retention(SOURCE)
    @Target(FIELD)
    public @interface JoinEntity
    Defines *-to-* relation with join table
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.Class<?> entity
      Reference to join-entity class, which holds the source and the target properties
      java.lang.String sourceProperty
      Name of the property inside the join entity which holds id of the source (current) entity
      java.lang.String targetProperty
      Name of the property inside the join entity which holds id of the target entity
    • Element Detail

      • entity

        java.lang.Class<?> entity
        Reference to join-entity class, which holds the source and the target properties
      • sourceProperty

        java.lang.String sourceProperty
        Name of the property inside the join entity which holds id of the source (current) entity
      • targetProperty

        java.lang.String targetProperty
        Name of the property inside the join entity which holds id of the target entity