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
Post a Comment