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 69944 - Delete CMP action doesn't delete all entries
Summary: Delete CMP action doesn't delete all entries
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 5.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on: 93404
Blocks:
  Show dependency tree
 
Reported: 2005-12-06 14:56 UTC by Petr Blaha
Modified: 2007-06-26 16:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2005-12-06 14:56:44 UTC
[build 20051129]
Steps:
1) generate CMP bean from table
2) expand bean's node in logical node and select CMP field that represents PK
3) delete this field
ERROR:
setId() method isn't deleted in bean impl class
check for null isn't deleted
and <primkey-field>id</primkey-field> entry in ejb-jar.xml isn't deleted as well.
Comment 1 Martin Adamek 2005-12-07 17:30:35 UTC
Fixed. Delete action was changed to refactoring Safe Delete
/cvs/ide/golden/friend-packages.txt,v  <--  friend-packages.txt; new revision:
1.12; previous revision: 1.11
/cvs/ide/golden/deps.txt,v  <--  deps.txt; new revision: 1.262; previous
revision: 1.261
/cvs/refactoring/nbproject/project.xml,v  <--  project.xml; new revision: 1.34;
previous revision: 1.33
/cvs/j2ee/ejbcore/nbproject/project.xml,v  <--  project.xml; new revision: 1.5;
previous revision: 1.4
/cvs/j2ee/ejbcore/src/org/netbeans/modules/j2ee/ejbcore/ui/logicalview/ejb/entity/CMPFieldNode.java,v
 <--  CMPFieldNode.java; new revision: 1.3; previous revision: 1.2
Comment 2 Petr Blaha 2005-12-08 09:12:02 UTC
I'm reopening since visual editor of ejb-jar.xml doesn't use safe delete. Use
safe delete for this action as well.
BTW, sefa delete doesn't allow to delete primary key field. However, this should
be used when user uses automatically generation PK. See
http://www.netbeans.org/kb/41/generated-primary-keys.html 
Comment 3 Martin Adamek 2006-03-02 10:29:37 UTC
Reassigning to owner - Erno. Good luck :-)
Comment 4 Petr Blaha 2006-03-13 13:48:03 UTC
TM 5.0 -> TBD
Comment 5 Erno Mononen 2007-06-26 16:08:52 UTC
Closing as WONTFIX since the EJB 2.x refactoring support was dropped in M10.