Module EagerORM
Annotation Interface OneToMany
Marks a
List field in an Entity class to be mapped as a one-to-many (1:n)
relationship in the database.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]Names of the columns in related object's table that act as a foreign key to the table of this object.Relationship names are used in making paths forQueryBuilderjoin methods.
-
Element Details
-
relationName
String relationNameRelationship names are used in making paths forQueryBuilderjoin methods. Default relationship name is the name of the field.- Default:
""
-
foreignKey
String[] foreignKeyNames of the columns in related object's table that act as a foreign key to the table of this object. By default, foreign key column names match the primary key column names of the table of this object.- Default:
{}
-