Bug 175858 - Ordering of fields generated in Entities should be consistent with database
Summary: Ordering of fields generated in Entities should be consistent with database
Status: NEW
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Neil Hauge CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2007-02-28 11:46 EST by Tom Mutdosch CLA
Modified: 2011-07-01 16:25 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Mutdosch CLA 2007-02-28 11:46:32 EST
Steps To Reproduce:
The fields that are generated for entities are generated in order of grouping: Id's first, followed by basics, followed by association mappings, etc.  Inside of these groupings, the fields do not seem to be generated in any type of order; I would expect them to be generated in the same orrder as they appear in the database (and as seen via the DTP database explorer). 

Some tools use the order of fields when generating UI, etc). 
For example, in my Customer table I have defined ID, NAME, ADDRESS1, ADDRESS2, CITY, STATE. In the generated Entity, the fields might be generated in the order of ID, ADDRESS2, NAME, ADDRESS1, STATE, CITY. When a UI form is generated from that entity using that ordering, the ordering of the fields do not make logical sense like they do in the DB.

Dali should keep the ordering of the fields consistent (within similar groups of course like Id, Basics, etc) as is found in the Database.
Comment 1 Neil Hauge CLA 2011-07-01 16:25:10 EDT
Moving JPA specific bugs to new JPA component in bugzilla.