[
https://issues.apache.org/jira/browse/OPENJPA-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard Zowalla updated OPENJPA-223:
------------------------------------
Fix Version/s: 4.2.0
> columnNames field of @Index annotation is ignored
> -------------------------------------------------
>
> Key: OPENJPA-223
> URL: https://issues.apache.org/jira/browse/OPENJPA-223
> Project: OpenJPA
> Issue Type: Bug
> Components: jdbc
> Affects Versions: 0.9.6
> Reporter: Marc Prud'hommeaux
> Priority: Major
> Fix For: 4.2.0
>
>
> It looks like we completely ignore the "columnNames" field of the
> org.apache.openjpa.persistence.jdbc.Index annotation. From Jonathan Feinberg
> on the mailing list:
> Is there any way to cause the OpenJPA schema builder to emit an index across
> multiple columns? My attempt,
> @Column(columnDefinition = "bytea")
> @Index(name = "i_owner_md5", columnNames = { "owner_id, md5" })
> public byte[] getMd5()
> {
> return md5;
> }
> is silently misinterpreted, in that only the annotated field (md5) gets
> indexed.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)