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.
[Build 20041216] According to the EJB 2.1 specification, see. 10.6.10 the remote home interface must always include findByPrimaryKey method. I suggest to disable delete this method in entity bean's logical view.
Created attachment 20449 [details] This patch disables Delete action for method with name "findByPrimaryKey" and with one "String" parameter. I cannot find ui spec regarding this. Please confirm, that this patch is sufficient.
Actually, the findByPrimaryKey method may get different parameters than String (String generated as a default is not very lucky, too, but that's a different story). I think the fix could be enhanced in two ways - remove parameter check - check if the node corresponds to ENTITY bean (see javax.ejb.EntityBean)
Checking in MethodNode.java; /cvs/j2ee/utilities/src/org/netbeans/modules/j2ee/common/ui/nodes/MethodNode.java,v <-- MethodNode.java new revision: 1.7; previous revision: 1.6 done
[Build 20050320]