Hi,
I'm trying to create indexes on my H2 tables via Hibernate annotations
and not having much luck. I was wondering if anyone else had succeeded
with this?
I've tried this at the beginning of my file:
@Entity
@Table(name="keywords")
@org.hibernate.annotations.Table(appliesTo="keywords", indexes =
{ @Index(name="KeywordNameIndex", columnNames={"name"} ) } )
and this on the column itself:
@Basic
@NotNull
@Index(name="KeywordNameIndex2")
public String getName() {
return name;
}
Thanks for any help!
-AJ
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/h2-database?hl=en.