This content has been marked as final.
Show 2 replies
-
1. Re: Column Order in EJB3 / Hibernate auto generated tables
jochen.reinhardt May 13, 2009 8:46 AM (in response to jochen.reinhardt)Hello?
What about a reply to my questions?
I would also be glad about an RTFM or some other sort of hint.
It has been quite a while since my last post.
Or am I doing something completely wrong?
FYI, I do not use schema auto-generation any more. I do create my tables with an SQL-Skript with optimized column and index colum order.
Cheers,
Jochen -
2. Re: Column Order in EJB3 / Hibernate auto generated tables
dgeraskov May 13, 2009 9:34 AM (in response to jochen.reinhardt)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" } ) )