Interface RelationshipFluent.ToMany

Enclosing interface:
RelationshipFluent

public static interface RelationshipFluent.ToMany
The toMany interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    joinOn(String mainObjIdProperty, String relatedObjFkProperty)
    The properties on each list whose values should be matched to populate the toMany relationship.
    through(Class<?> throughType, String fkPropertyToMainObjId, String fkPropertyToRelatedObjId)
    The 'through' information when defining a toMany relationship through an intermediate table (one side of many to many).
  • Method Details

    • joinOn

      RelationshipFluent.Populate joinOn(String mainObjIdProperty, String relatedObjFkProperty)
      The properties on each list whose values should be matched to populate the toMany relationship. The java type of both the properties have to be exactly the same.
      Parameters:
      mainObjIdProperty - The main object id
      relatedObjFkProperty - The related object foreign key used for matching
      Returns:
      Populate
    • through

      RelationshipFluent.Populate through(Class<?> throughType, String fkPropertyToMainObjId, String fkPropertyToRelatedObjId)
      The 'through' information when defining a toMany relationship through an intermediate table (one side of many to many).
      Parameters:
      throughType - The intermediate type
      fkPropertyToMainObjId - the foreign key property that matches the main object's id
      fkPropertyToRelatedObjId - The foreign key property that matches the related object's id
      Returns:
      Populate