Bug 173517 - entity generation - generate additional useful constructor
Summary: entity generation - generate additional useful constructor
Status: NEW
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: unspecified   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-08 14:15 EST by Tom Mutdosch CLA
Modified: 2011-07-01 16:26 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-08 14:15:06 EST
In addition to the default constructors, it might be nice to be able to generate a constructor that takes in the primary key values since they always need set anyway. Also helpful could be a constructor that takes in all values for required non-null columns.  These are just 'niceties', but I think they can really help the user experience.  What's the first thing you need to do when creating a new instance of an Entity?  Set the primary key.  It'd be nice to just see it in the context assist for the constructor; then you don't even need to look at the entity to see what the primary key is - you could tell just by what argument(s) the constructor takes in.
Comment 1 Neil Hauge CLA 2011-07-01 16:26:02 EDT
Moving JPA specific bugs to new JPA component in bugzilla.