public static interface ForeignKeyProperty.Builder extends Property.Builder<Entity,ForeignKeyProperty.Builder>
Modifier and Type | Method and Description |
---|---|
ForeignKeyProperty.Builder |
fetchDepth(int fetchDepth) |
ForeignKeyProperty.Builder |
readOnly(Attribute<?> referenceAttribute)
Marks the given foreign key reference attribute as read-only, as in, not updated when the foreign key value is set.
|
ForeignKeyProperty.Builder |
selectAttributes(Attribute<?>... attributes)
Specifies the attributes from the referenced entity to select.
|
ForeignKeyProperty.Builder |
softReference(boolean softReference)
Specifies that this foreign key is not based on a physical (table) foreign key
and should not prevent deletion
|
attribute, beanProperty, build, captionResourceKey, comparator, dateTimePattern, decimalRoundingMode, defaultValue, defaultValueSupplier, description, format, hidden, localeDateTimePattern, maximumFractionDigits, maximumLength, maximumValue, minimumValue, mnemonic, nullable, numberFormatGrouping, preferredColumnWidth, valueRange
ForeignKeyProperty.Builder fetchDepth(int fetchDepth)
fetchDepth
- the default query fetch depth for this foreign keyForeignKeyProperty.Builder softReference(boolean softReference)
softReference
- true if this is a soft foreign key, which does not prevent deletionForeignKeyProperty.Builder readOnly(Attribute<?> referenceAttribute)
referenceAttribute
- the reference attributeForeignKeyProperty.Builder selectAttributes(Attribute<?>... attributes)
attributes
- the attributes to select