Uploaded image for project: 'Hibernate ORM'
  1. HHH-7411

Revisit how generated constraint names are used

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 6.0.0-legacy (disregard)
    • Component/s: metamodel
    • Labels:
      None
    • Last commented by a user?:
      true
    • Sprint:

      Description

      The fix for HHH-7092 Resolved generates a default constraint name used only for creating DDL if no name is provided. In this case the value returned by Constraint.getName() will be null (not the generated name).

      This generate name is based on the columns making up the constraint, so the generated name will not be correct until after all columns are added to the constraint. Because the the constraint columns are not passed to the constructor, the name cannot be generated when the constraint is created.

      We should revisit how/when columns are added and how/when the constraint name is generated to see if this can be simplified.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: