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

javax.persistence.Index#columnList should strip spaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.1
    • 3.1.2
    • kernel
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: