public class AssociationField extends CollectionField
Constructor and Description |
---|
AssociationField(EntityType relatedType) |
AssociationField(EntityType relatedType,
java.lang.String name,
CascadeType[] cascadeTypes) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateTargetSelect(java.lang.String id)
Generates the target select.
|
LinkColumns |
getLinkColumns()
Gets the result.
|
boolean |
hasInverseJoinColumns()
Returns true if this field is annotated with
|
boolean |
hasJoinColumns()
Returns true if this field is annotated with
|
void |
setInverseJoinColumns(boolean hasInverseJoinColumns)
Sets true if this field is annotated with
|
void |
setJoinColumns(boolean hasJoinColumns)
Sets true if this field is annotated with
|
void |
setLinkColumns(LinkColumns columns)
Sets the result columns.
|
createExpr, generateCopyUpdateObject, generateJoin, generateLoadSelect, generatePostCascade, generatePreCascade, generateStatementSet, generateUpdate, getSourceColumn, getTableName, getTargetType, setTable, setType
generateFlushCheck, generateInternalCascade, getCascadeType, isCascadable, isCascade, setCascadeType
childDelete, generateCastFromObject, generateCopyLoadObject, generateCreateTableSQL, generateDetach, generateDumpRelationships, generateEquals, generateExpire, generateGet, generateGet, generateGetterMethod, generateInsert, generateInsertColumns, generateInsertSet, generateInvalidateForeign, generateJavaSelect, generateLoad, generateLoadFromObject, generateLoadNative, generateLoadSelect, generateMergeFrom, generateNativeColumnNames, generateNull, generatePostConstructor, generatePostDelete, generatePostLoadSelect, generatePreDelete, generatePrePersist, generatePrologue, generateSelect, generateSet, generateSet, generateSetterMethod, generateStatementSet, generateSuperGetter, generateSuperGetterMethod, generateSuperSetter, generateSuperSetterMethod, generateUpdate, generateUpdateFromObject, generateUpdateSet, generateWhere, getBeanClass, getColumn, getCreateLoadMask, getEntitySourceType, getFieldName, getGetterMethod, getGetterName, getIndex, getJavaClass, getJavaType, getJavaTypeName, getLoadGroupIndex, getName, getPersistenceUnit, getSetterMethod, getSetterName, getSourceType, getTable, hasLoadGroup, init, isAbstract, isFieldAccess, isKey, isLazy, isOverride, isUpdateable, link, override, setColumn, setIndex, setJavaType, setLazy, setLoadGroupIndex, setName, setOverride, toObject, toString
public AssociationField(EntityType relatedType, java.lang.String name, CascadeType[] cascadeTypes) throws ConfigException
ConfigException
public AssociationField(EntityType relatedType)
public boolean hasJoinColumns()
public void setJoinColumns(boolean hasJoinColumns)
public boolean hasInverseJoinColumns()
public void setInverseJoinColumns(boolean hasInverseJoinColumns)
public void setLinkColumns(LinkColumns columns)
setLinkColumns
in class CollectionField
public LinkColumns getLinkColumns()
getLinkColumns
in class CollectionField
public java.lang.String generateTargetSelect(java.lang.String id)
generateTargetSelect
in class CollectionField