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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated, 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 String
getTableNameForLogging
(Column column) void
reorderColumns
(List<Column> reorderedColumns) void
setOrderingUniqueKey
(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:
addColumn
in 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:
sqlConstraintString
in classConstraint
-
generatedConstraintNamePrefix
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
generatedConstraintNamePrefix
in classConstraint
- Returns:
- String The prefix to use in generated constraint names. Examples: "UK_", "FK_", and "PK_".
-
getExportIdentifier
Description copied from interface:Exportable
Get 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
-