Package org.hibernate.type
Interface AssociationType
- All Superinterfaces:
Serializable
,Type
- All Known Implementing Classes:
AnyType
,ArrayType
,BagType
,CollectionType
,CustomCollectionType
,EntityType
,IdentifierBagType
,ListType
,ManyToOneType
,MapType
,OneToOneType
,OrderedMapType
,OrderedSetType
,SetType
,SortedMapType
,SortedSetType
,SpecialOneToOneType
A type that represents some kind of association between entities.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGet the entity name of the associated entityGet the "persister" for this association - a class or collection persisterGet the foreign key directionality of this associationGet the name of a property in the owning entity that provides the join key (null if the identifier)The name of a unique property of the associated entity that provides the join key (null if the identifier of an entity, or key of a collection)boolean
Do we dirty check this association, even when there are no columns to be updated?boolean
Is the primary key of the owning entity table to be used in the join?Methods inherited from interface org.hibernate.type.Type
assemble, beforeAssemble, compare, compare, deepCopy, disassemble, disassemble, getColumnSpan, getColumnSpan, getHashCode, getHashCode, getName, getReturnedClass, getReturnedClassName, getSqlTypeCodes, getSqlTypeCodes, getTypeForEqualsHashCode, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeSet, nullSafeSet, replace, replace, toColumnNullness, toColumnNullness, toLoggableString
-
Method Details
-
getForeignKeyDirection
ForeignKeyDirection getForeignKeyDirection()Get the foreign key directionality of this association -
useLHSPrimaryKey
boolean useLHSPrimaryKey()Is the primary key of the owning entity table to be used in the join? -
getLHSPropertyName
String getLHSPropertyName()Get the name of a property in the owning entity that provides the join key (null if the identifier) -
getRHSUniqueKeyPropertyName
String getRHSUniqueKeyPropertyName()The name of a unique property of the associated entity that provides the join key (null if the identifier of an entity, or key of a collection) -
getAssociatedJoinable
Get the "persister" for this association - a class or collection persister- Throws:
MappingException
-
getAssociatedEntityName
Get the entity name of the associated entity- Throws:
MappingException
-
isAlwaysDirtyChecked
boolean isAlwaysDirtyChecked()Do we dirty check this association, even when there are no columns to be updated?
-