optionalReferrersOn
Registers an optional reference as an immutable field of the parent entity class, which returns a collection of child objects of this EntityClass that all reference the parent.
The reference should have been defined by the creation of a column using either optReference() or reference().nullable() on the child table.
By default, this also stores the loaded entities to a cache.
Registers an optional reference as an immutable field of the parent entity class, which returns a collection of child objects of this EntityClass that all reference the parent.
The reference should have been defined by the creation of a column using either optReference() or reference().nullable() on the child table.
Set cache to true to also store the loaded entities to a cache.
Registers an optional reference as an immutable field of the parent entity class, which returns a collection of child objects of this EntityClass that all reference the parent.
The reference should have been defined by the creation of a foreign key constraint on the child table, by using foreignKey().
By default, this also stores the loaded entities to a cache.