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 136634 - Add support for changeSupport.firePropertyChange in "New entity class from database" code generation
Summary: Add support for changeSupport.firePropertyChange in "New entity class from da...
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker with 2 votes (vote)
Assignee: Sergey Petrov
URL:
Keywords:
: 129565 139438 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-06 10:37 UTC by gwampach
Modified: 2016-07-07 08:55 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Example of expected generated code (6.23 KB, text/plain)
2008-06-06 10:40 UTC, gwampach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gwampach 2008-06-06 10:37:10 UTC
When using the "New/Entity class from database..." menu by right-clicking on a package under the Project tab, it should
be possible to choose if the code to generate must have support for changeSupport.  

It can be for example a checkBox that the user can check to indicate if he wants changeSupport code to be generated.
The code generated will generate an entity class that will have in addition a changeSupport private field +
changeSupport.firePropertyChange(...) call in each one of the setters and 2 methods to register/unregister observers.
Comment 1 gwampach 2008-06-06 10:40:26 UTC
Created attachment 62457 [details]
Example of expected generated code
Comment 2 Dongmei Cao 2008-06-17 00:45:41 UTC
*** Issue 129565 has been marked as a duplicate of this issue. ***
Comment 3 Dongmei Cao 2008-06-17 00:48:00 UTC
Change to P3 since the dup bug was P3 and had 1 vote on it.
Comment 4 Dongmei Cao 2008-10-15 19:25:14 UTC
*** Issue 139438 has been marked as a duplicate of this issue. ***
Comment 5 Martin Balin 2016-07-07 08:55:33 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