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 77488

Summary: findByUniqueKey
Product: javaee Reporter: kovica <kovica>
Component: CodeAssignee: Pavel Buzek <pbuzek>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description kovica 2006-06-07 07:17:23 UTC
Wizard "Create Entity Beans fro database" creates findBy methods for all
columns. this is usually not necessary, since you usually seach by primary key
or unique key, but the methos findByUniqueueKey is not generated.
Example:
table PRODUCT has columns:
	PROD_ID
	PROD_NAME
	PROD_CODE

Since PROD_ID is my primary key it is also a unique key, but columns PROD_NAME
and PROD_CODE are together also a unique key. So I want the wizard to generate a
method findByProdNameAndProdCode or findByUniqueueKey(PROD_CODE, PROD_NAME).
Comment 1 Martin Balin 2016-07-07 08:55:15 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