Interface ForeignKeyDefinition.Builder

All Superinterfaces:
AttributeDefinition.Builder<Entity,ForeignKeyDefinition.Builder>
Enclosing interface:
ForeignKeyDefinition

public static interface ForeignKeyDefinition.Builder extends AttributeDefinition.Builder<Entity,ForeignKeyDefinition.Builder>
  • Method Details

    • readOnly

      ForeignKeyDefinition.Builder readOnly(Column<?> referenceColumn)
      Marks the given foreign key reference column as read-only, as in, not updated when the foreign key value is set.
      Parameters:
      referenceColumn - the reference column
      Returns:
      this instance
    • attributes

      ForeignKeyDefinition.Builder attributes(Attribute<?>... 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