[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Column Order in EJB3 / Hibernate auto generated tables
dgeraskov
do-not-reply at jboss.com
Wed May 13 09:34:55 EDT 2009
Use following code to create index with your's columns:
@Entity
| @Table(name="USERS")
| @org.hibernate.annotations.Table(
| appliesTo = "USERS", indexes =
| @org.hibernate.annotations.Index(
| name = "MY_INDEX",
| columnNames = {"id3", "id", "id2" }
| )
| )
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230840#4230840
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230840
More information about the jboss-user
mailing list