CHILD
- The child entity typePARENT
- The parent entity typeCHILDBUILDER
- The class used to construct new CHILD
instancesPARENTBUILDER
- The class used to construct new PARENT
instancespublic interface ParentColumn<CHILD,PARENT,CHILDBUILDER,PARENTBUILDER> extends Column<CHILD,CHILDBUILDER>
Most users of hrorm will have no need to directly use this.
Modifier and Type | Method and Description |
---|---|
Long |
getParentId(CHILD child) |
default boolean |
isParentColumn()
Flag indicating whether this column represents a reference to a parent entity.
|
void |
setParentPrimaryKey(PrimaryKey<PARENT,PARENTBUILDER> parentPrimaryKey) |
BiConsumer<CHILDBUILDER,PARENT> |
setter() |
getName, getPrefix, isPrimaryKey, notNull, populate, setValue, supportedTypes, withPrefix
void setParentPrimaryKey(PrimaryKey<PARENT,PARENTBUILDER> parentPrimaryKey)
BiConsumer<CHILDBUILDER,PARENT> setter()
default boolean isParentColumn()
Column
isParentColumn
in interface Column<CHILD,CHILDBUILDER>
Copyright © 2019. All rights reserved.