Annotation Type ToMany
-
@Retention(SOURCE) @Target(FIELD) public @interface ToManyDefines *-to-N relation
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description JoinProperty[]joinPropertiesArray of matching source -> target properties Required unlessreferencedJoinProperty()orJoinEntityis specifiedjava.lang.StringreferencedJoinPropertyName of the property inside the target entity which holds id of the source (current) entity Required unless noJoinPropertyorJoinEntityis specified
-
-
-
Element Detail
-
referencedJoinProperty
java.lang.String referencedJoinProperty
Name of the property inside the target entity which holds id of the source (current) entity Required unless noJoinPropertyorJoinEntityis specified- Default:
- ""
-
-
-
joinProperties
JoinProperty[] joinProperties
Array of matching source -> target properties Required unlessreferencedJoinProperty()orJoinEntityis specified- Default:
- {}
-
-