Class Key

java.lang.Object
org.hibernate.envers.boot.model.Key
All Implemented Interfaces:
Bindable<JaxbHbmKeyType>, Cloneable<Key>, ColumnContainer

public class Key extends Object implements ColumnContainer, Bindable<JaxbHbmKeyType>, Cloneable<Key>
Contract for declaring a column name of a foreign key.
  • Constructor Details

    • Key

      public Key()
    • Key

      public Key(Key key)
  • Method Details

    • getColumns

      public List<Column> getColumns()
      Description copied from interface: ColumnContainer
      Get all columns that are part of this property
      Specified by:
      getColumns in interface ColumnContainer
      Returns:
      unmodifiable list of property columns
    • 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 Key deepCopy()
      Description copied from interface: Cloneable
      Creates a new, deep-copied instance of this object
      Specified by:
      deepCopy in interface Cloneable<Key>
      Returns:
      a deep-copy clone of the referenced object
    • build

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