Interface ColumnOrderingStrategy

All Known Implementing Classes:
ColumnOrderingStrategyLegacy, ColumnOrderingStrategyStandard

@Incubating public interface ColumnOrderingStrategy
A pluggable contract that allows ordering of columns within Table, Constraint and UserDefinedObjectType.

An ColumnOrderingStrategy may be selected using the configuration property "hibernate.column_ordering_strategy".

See Also:
  • Method Details

    • orderTableColumns

      List<Column> orderTableColumns(Table table, Metadata metadata)
      Orders the columns of the table. May return null if columns were not ordered.
    • orderConstraintColumns

      List<Column> orderConstraintColumns(Constraint constraint, Metadata metadata)
      Orders the columns of the constraint. May return null if columns were not ordered.
    • orderUserDefinedTypeColumns

      List<Column> orderUserDefinedTypeColumns(UserDefinedObjectType userDefinedType, Metadata metadata)
      Orders the columns of the user defined type. May return null if columns were not ordered.
    • orderTemporaryTableColumns

      void orderTemporaryTableColumns(List<TemporaryTableColumn> temporaryTableColumns, Metadata metadata)
      Orders the columns of the temporary table.