Interface RelationshipFluent.ToMany
- Enclosing interface:
RelationshipFluent
public static interface RelationshipFluent.ToMany
The toMany interface.
-
Method Summary
Modifier and TypeMethodDescriptionThe properties on each list whose values should be matched to populate the toMany relationship.The 'through' information when defining a toMany relationship through an intermediate table (one side of many to many).
-
Method Details
-
joinOn
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 idrelatedObjFkProperty- 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 typefkPropertyToMainObjId- the foreign key property that matches the main object's idfkPropertyToRelatedObjId- The foreign key property that matches the related object's id- Returns:
- Populate
-