Module is.codion.framework.domain
Interface ForeignKeyDefinition.Builder
- All Superinterfaces:
AttributeDefinition.Builder<Entity,
ForeignKeyDefinition.Builder>
- Enclosing interface:
- ForeignKeyDefinition
public static interface ForeignKeyDefinition.Builder
extends AttributeDefinition.Builder<Entity,ForeignKeyDefinition.Builder>
Builds a
ForeignKeyDefinition
.-
Method Summary
Modifier and TypeMethodDescriptionattributes
(Attribute<?>... attributes) Specifies the attributes from the referenced entity to select.Marks the given foreign key reference column as read-only, as in, not updated when the foreign key value is set.Methods inherited from interface is.codion.framework.domain.entity.attribute.AttributeDefinition.Builder
attribute, build, caption, captionResourceKey, comparator, dateTimePattern, decimalRoundingMode, defaultValue, defaultValue, description, format, hidden, items, localeDateTimePattern, maximumFractionDigits, maximumLength, maximumValue, minimumValue, mnemonic, nullable, numberFormatGrouping, valueRange
-
Method Details
-
readOnly
Marks the given foreign key reference column as read-only, as in, not updated when the foreign key value is set.- Parameters:
column
- the reference column- Returns:
- this instance
-
attributes
Specifies the attributes from the referenced entity to select. Note that the primary key attributes are always selected and do not have to be added via this method.- Parameters:
attributes
- the attributes to select- Returns:
- this instance
-