0

JPA Console Generated DDL alphabetical column order

When I use the JPA Console to "Generate persistence unit DDL" the DDL generates tables with columns that are in alphabetical order by column name, with inherited fields at the top (this is a good thing), alphabetized as a separate group. I would expect - and GREATLY prefer - that the column order match the order which I have defined for the fields in my entity classes with JPA annotations.

Is there a way to change this odd behavior for myself locally? Or is this something that requires a code change to the IDEA implementation? Or is this the result of strangeness in some underlying code that is only invoked by the IDEA Generate DDL function?

-Bob Gleason-

2 comments

Please sign in to leave a comment.