3

When generating JPA Entities in Eclipse using JPA Tools, the fields are ordered alphabetically instead of the order defined in the Tables.

My DB

enter image description here

JPA Generated Entity

enter image description here

Any idea how to switch this off? The problem is if I set ddl-auto, then the columns in the DB Table are generated in the Entity order which makes it very confusing when browsing the data using the DB.

Neil Stockton
  • 11,383
  • 3
  • 34
  • 29
Quentinb
  • 476
  • 1
  • 9
  • 30

0 Answers0