Class SetAttribute

  • All Implemented Interfaces:
    Attribute, Bindable<Serializable>, Cloneable<Attribute>, ColumnContainer, PluralAttribute

    public class SetAttribute
    extends Object
    implements PluralAttribute
    A plural attribute that represents a set. This attribute binds Hibernate's persistence model to a JaxbHbmSetType mapping 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 Detail

    • 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: Attribute
        Get the name of the attribute
        Specified by:
        getName in interface Attribute
        Returns:
        the attribute's name
      • setName

        public void setName​(String name)
        Description copied from interface: Attribute
        Set the name of the attribute
        Specified by:
        setName in interface Attribute
        Parameters:
        name - the attribute's name
      • addColumn

        public void addColumn​(Column column)
        Description copied from interface: ColumnContainer
        Add a column to the container.
        Specified by:
        addColumn in interface ColumnContainer
        Parameters:
        column - the column, must not be null
      • deepCopy

        public Attribute deepCopy()
        Description copied from interface: Cloneable
        Creates a new, deep-copied instance of this object
        Specified by:
        deepCopy in interface Cloneable<Attribute>
        Returns:
        a deep-copy clone of the referenced object
      • build

        public Serializable build()
        Description copied from interface: Bindable
        Builds the specified binded class type.
        Specified by:
        build in interface Bindable<Serializable>
        Returns:
        instance of the bindable class type, never null