Package org.hibernate.mapping
Class PrimaryKey
java.lang.Object
org.hibernate.mapping.Constraint
org.hibernate.mapping.PrimaryKey
- All Implemented Interfaces:
Serializable,Exportable
A mapping model object representing a primary key constraint.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.Get a unique identifier to make sure we are not exporting the same database structure multiple times.int[]protected StringgetTableNameForLogging(Column column) voidreorderColumns(List<Column> reorderedColumns) voidsetOrderingUniqueKey(UniqueKey uniqueKey) sqlConstraintString(SqlStringGenerationContext context, String constraintName, String defaultCatalog, String defaultSchema) Deprecated, for removal: This API element is subject to removal in a future version.sqlConstraintString(Dialect dialect) Methods inherited from class org.hibernate.mapping.Constraint
addColumns, containsColumn, generateName, generateName, getColumn, getColumns, getColumnSpan, getName, getTable, hashedName, isGenerated, setName, setTable, toString
-
Constructor Details
-
PrimaryKey
-
-
Method Details
-
addColumn
- Overrides:
addColumnin classConstraint
-
getTableNameForLogging
-
sqlConstraintString
-
sqlConstraintString
@Deprecated(since="6.2", forRemoval=true) public String sqlConstraintString(SqlStringGenerationContext context, String constraintName, String defaultCatalog, String defaultSchema) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
sqlConstraintStringin classConstraint
-
generatedConstraintNamePrefix
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
generatedConstraintNamePrefixin classConstraint- Returns:
- String The prefix to use in generated constraint names. Examples: "UK_", "FK_", and "PK_".
-
getExportIdentifier
Description copied from interface:ExportableGet a unique identifier to make sure we are not exporting the same database structure multiple times.- Returns:
- The exporting identifier.
-
getColumnsInOriginalOrder
-
setOrderingUniqueKey
-
getOrderingUniqueKey
-
reorderColumns
-
getOriginalOrder
-