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.
Summary: | Disable 'delete' for findByPrimaryKey method | ||
---|---|---|---|
Product: | javaee | Reporter: | Petr Blaha <blaha> |
Component: | EJB | Assignee: | Martin Grebac <mgrebac> |
Status: | CLOSED FIXED | ||
Severity: | blocker | CC: | jbecicka |
Priority: | P3 | Keywords: | SIMPLEFIX |
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | 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. |
Description
Petr Blaha
2004-12-17 15:47:24 UTC
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] |