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

Summary: [55cat] When generating entity classes from a DB, allow user overrides of property names
Product: javaee Reporter: Craig Mcclanahan <craigmcc>
Component: PersistenceAssignee: martin_adamek <martin_adamek>
Status: RESOLVED WONTFIX    
Severity: blocker CC: brviking
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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