[ https://issues.apache.org/jira/browse/OPENJPA-2936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17948625#comment-17948625 ]
ASF subversion and git services commented on OPENJPA-2936: ---------------------------------------------------------- Commit 3c2bae980d3c79eb1e664d54218c9f0d0fdf20a5 in openjpa's branch refs/heads/master from Paulo Cristovão de Araújo Silva Filho [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=3c2bae980 ] [OPENJPA-2936] Fixes unnamed index synchronization (#130) * [OPENJPA-2936] Fixes unnamed index synchronization * Allow creation of indexes using columns names * Modified TestIndices to test creation of unnamed index * [OPENJPA-2936] Fixing code format > Usage of JPA @Index without name prevents creating schema and queries > --------------------------------------------------------------------- > > Key: OPENJPA-2936 > URL: https://issues.apache.org/jira/browse/OPENJPA-2936 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 4.0.1, 4.1.0 > Reporter: Paulo Cristovão de Araújo Silva Filho > Priority: Major > > When a given entity has the > {code:java} > @Index(columnList="COL1, COL2"){code} > annotation without giving a name, the schema generation or reflection fails > due to the fact that the mappingtool is not able to define the given name. > > Tested on 4.0.1 and 4.1.0 changing > {code}org.apache.openjpa.persistence.jdbc.annotations.EntityWithIndices{code} > - adding an unnamed index. > I will soon propose a fix in a PR. -- This message was sent by Atlassian Jira (v8.20.10#820010)