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

javax.persistence.Index#columnList should strip spaces

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.1.2
    • Component/s: kernel
    • Labels:
      None

      Description

      When using an @Index with multiple columns we should strip the spaces of the column names. Right now this leads to an Exception:

      The following works:

      @Index(name = "IS_ADDR", columnList = "COUNTRY,BIC,CITY,STREET,HOUSENR"),
      

      But adding spaces breaks the schema generator:

      @Index(name = "IS_ADDR", columnList = "COUNTRY, BIC, CITY, STREET, HOUSENR"),
      

        Attachments

          Activity

            People

            • Assignee:
              struberg Mark Struberg
              Reporter:
              struberg Mark Struberg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: