I let hbm2ddl create the tables for me (for dev purposes), and the columns are in reverse order of the fields in the class.
How can I make it create the columns in the same order as the class has?
I think Java classes do not store the order of fields, so Hibernate simply does not know what the order in source is (which seems logical if I think about more complex cases).
But, can I at least ask Hibernate to put PK and FK columns as first ones?
Hibernate 4.0.0 (JBoss AS 7.1.2) MySQL 5.1.x