Package org.hibernate.envers.boot.model
Class ManyToOneAttribute
java.lang.Object
org.hibernate.envers.boot.model.ManyToOneAttribute
- All Implemented Interfaces:
Attribute
,Bindable<Serializable>
,Cloneable<Attribute>
,ColumnContainer
,Keyable
,PluralAttribute
Represents a plural attribute mapping of a
many-to-one
or key-many-to-one
.-
Constructor Summary
ConstructorsConstructorDescriptionManyToOneAttribute
(String name, String type, boolean insertable, boolean updatable, boolean key, String explicitType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a column to the container.build()
Builds the specified binded class type.deepCopy()
Creates a new, deep-copied instance of this objectGet all columns that are part of this propertygetName()
Get the name of the attributeboolean
isKey()
Get whether the attribute is already participatig in a key.void
setForeignKey
(String foreignKey) void
setKey
(boolean key) Set whether this attribute should or shouldn't participate as a key attribute.void
Set the name of the attributevoid
setOnDelete
(String onDelete) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.envers.boot.model.ColumnContainer
addColumnsFromValue
-
Constructor Details
-
ManyToOneAttribute
-
ManyToOneAttribute
-
-
Method Details
-
getName
Description copied from interface:Attribute
Get the name of the attribute -
setName
Description copied from interface:Attribute
Set the name of the attribute -
setKey
public void setKey(boolean key) Description copied from interface:Keyable
Set whether this attribute should or shouldn't participate as a key attribute. -
isKey
public boolean isKey()Description copied from interface:Keyable
Get whether the attribute is already participatig in a key. -
getOnDelete
-
setOnDelete
-
getColumns
Description copied from interface:ColumnContainer
Get all columns that are part of this property- Specified by:
getColumns
in interfaceColumnContainer
- Returns:
- unmodifiable list of property columns
-
addColumn
Description copied from interface:ColumnContainer
Add a column to the container.- Specified by:
addColumn
in interfaceColumnContainer
- Parameters:
column
- the column, must not benull
-
setForeignKey
-
deepCopy
Description copied from interface:Cloneable
Creates a new, deep-copied instance of this object -
build
Description copied from interface:Bindable
Builds the specified binded class type.- Specified by:
build
in interfaceBindable<Serializable>
- Returns:
- instance of the bindable class type, never
null
-