java - The Position of tables in hibernate -


how can configure hibernate annotations in entity class columns created in specific order. example : id first column, lastname second, address third, etc. using mysql db,hibernate creating tables in alphabetical order.

i don't think there way ... apart creating tables hand using sql "create table" statements.

my understanding hibernate's "create in alphabetical order" behaviour standard across database types. better old behaviour ... "create in random order" depending on hash codes of column names. (that fixed, because made hibernate's generated schemas unstable; i.e. potentially different each time.)


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -