[ https://issues.apache.org/jira/browse/OPENJPA-2807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17092312#comment-17092312 ]
ASF subversion and git services commented on OPENJPA-2807: ---------------------------------------------------------- Commit ff2a1e6c1f8655a52fa9db5a8b1e9ffe54f92f81 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=ff2a1e6 ] OPENJPA-2807 trim spaces from column names @Index(columnList="a, b, c") used to not trim the spaces. Thus it was looking for a column "a ", "b " and "c " which obviously could not be found. > javax.persistence.Index#columnList should strip spaces > ------------------------------------------------------ > > Key: OPENJPA-2807 > URL: https://issues.apache.org/jira/browse/OPENJPA-2807 > Project: OpenJPA > Issue Type: Bug > Components: kernel > Affects Versions: 3.1.1 > Reporter: Mark Struberg > Assignee: Mark Struberg > Priority: Major > Fix For: 3.1.2 > > > 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: > {noformat} > @Index(name = "IS_ADDR", columnList = "COUNTRY,BIC,CITY,STREET,HOUSENR"), > {noformat} > But adding spaces breaks the schema generator: > {noformat} > @Index(name = "IS_ADDR", columnList = "COUNTRY, BIC, CITY, STREET, HOUSENR"), > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)