Package org.hibernate.envers.boot.model
Class SetAttribute
- java.lang.Object
-
- org.hibernate.envers.boot.model.SetAttribute
-
- All Implemented Interfaces:
Attribute,Bindable<Serializable>,Cloneable<Attribute>,ColumnContainer,PluralAttribute
public class SetAttribute extends Object implements PluralAttribute
A plural attribute that represents aset. This attribute binds Hibernate's persistence model to aJaxbHbmSetTypemapping that will be contributed by Envers back to Hibernate for the audit entity mappings. This does not bind all JAXB model attributes, only those which are applicable to Envers's metamodel.
-
-
Constructor Summary
Constructors Constructor Description SetAttribute(String name, String tableName, String schemaName, String catalogName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddColumn(Column column)Add a column to the container.Serializablebuild()Builds the specified binded class type.AttributedeepCopy()Creates a new, deep-copied instance of this objectList<Column>getColumns()Get all columns that are part of this propertyStringgetName()Get the name of the attributevoidsetCascade(String cascade)voidsetColumnName(String columnName)voidsetElementType(String elementType)voidsetFetch(String fetch)voidsetKeyColumn(String keyColumn)voidsetLazy(String lazy)voidsetName(String name)Set the name of the attribute-
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
-
-
-
-
Method Detail
-
setCascade
public void setCascade(String cascade)
-
setFetch
public void setFetch(String fetch)
-
setKeyColumn
public void setKeyColumn(String keyColumn)
-
setElementType
public void setElementType(String elementType)
-
setLazy
public void setLazy(String lazy)
-
setColumnName
public void setColumnName(String columnName)
-
getName
public String getName()
Description copied from interface:AttributeGet the name of the attribute
-
setName
public void setName(String name)
Description copied from interface:AttributeSet the name of the attribute
-
getColumns
public List<Column> getColumns()
Description copied from interface:ColumnContainerGet all columns that are part of this property- Specified by:
getColumnsin interfaceColumnContainer- Returns:
- unmodifiable list of property columns
-
addColumn
public void addColumn(Column column)
Description copied from interface:ColumnContainerAdd a column to the container.- Specified by:
addColumnin interfaceColumnContainer- Parameters:
column- the column, must not benull
-
deepCopy
public Attribute deepCopy()
Description copied from interface:CloneableCreates a new, deep-copied instance of this object
-
build
public Serializable build()
Description copied from interface:BindableBuilds the specified binded class type.- Specified by:
buildin interfaceBindable<Serializable>- Returns:
- instance of the bindable class type, never
null
-
-