Interface ToManySpec

All Known Implementing Classes:
RelationshipLegacy

@Deprecated(since="2.4.0", forRemoval=true) public interface ToManySpec
Deprecated, for removal: This API element is subject to removal in a future version.
Specification for the ToMany relationship
Author:
Antony Joseph
  • Method Summary

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

    • joinOn

      PopulateSpec joinOn(String mainObjIdProperty, String relatedObjFkProperty)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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:
      The populateSpec
    • through

      PopulateSpec through(Class<?> throughType, String fkPropertyToMainObjId, String fkPropertyToRelatedObjId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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:
      the PopulateSpec