This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 84106 - [55cat] When generating entity classes from a DB, allow user overrides of property names
Summary: [55cat] When generating entity classes from a DB, allow user overrides of pro...
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: martin_adamek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-04 04:14 UTC by Craig Mcclanahan
Modified: 2016-07-07 08:52 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Mcclanahan 2006-09-04 04:14:42 UTC
When generating entity classes from an existing database, the current UI allows
the user to customize the names of the entity classes that are created (although
it uses a table widget that has very poor usability -- you can't insert a cursor
inside the name of the classes and use normal string editing capabilities).  It
would be useful to allow the same sort of option to override the names of
generated JavaBeans properties for each of the columns in each of the classes to
be generated.
Comment 1 Craig Mcclanahan 2006-09-04 05:55:04 UTC
In addition to allowing an override of the property name, it might also be worth
offering the user a chance to change the type of the property as well.  Two
example use cases:

* Derby doesn't currently support a BIT data type, but I'd
  like to create a boolean property (so that it can easily
  be visualized by a checkbox).  Closest I can come is a
  SMALLINT, which the generated code interprets to mean one
  of the integer types.

* For a Derby column of type TIMESTAMP, the generator uses
  java.util.Date.  I'd like to be able to change that before
  the code gen actually occurs.

Comment 2 Martin Balin 2016-07-07 08:52:51 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss