openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Feinberg <...@us.ibm.com>
Subject Any way to index multiple columns?
Date Wed, 18 Apr 2007 18:56:00 GMT
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.

Thanks,
-- 
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message