Dean Schulze
Dean Schulze

Reputation: 10303

Controlling the column order when EclipseLink creates tables

I'm using EclipseLink with the "eclipselink.ddl-generation" property set to "create-tables". The order of the columns in the created tables seems random. I want the columns in a particular order - the order in which the fields appear in the Entity class definition.

Is there a way to tell EclipseLink to create the columns in the order in the Entity class definition or some other way to specify column order?

Thanks.

Upvotes: 5

Views: 1426

Answers (1)

Philihp Busby
Philihp Busby

Reputation: 4485

There isn't anything out of the box from EclipseLink to do this. Column order shouldn't matter in a properly normalized database.

Upvotes: 0

Related Questions