Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-709

Better naming for unique constraints

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.2.0
    • 1.3.0, 2.0.0-beta
    • None
    • None
    • SUN JDK 1.6.0_06 for Linux(amd64)

    Description

      An unique constraint name contains "uk_" prefix and combination of field's names. In case two or more tables have unique constraints with the same combination of fields, the generation of database's schema will fail, because constraint name should be unique too.

      It will be very nice if next versions of JPA specification will include possibility to set name for particular constraint.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              goshoo Georgi Naplatanov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: