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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -