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 - findByUniqueKey
Summary: findByUniqueKey
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-07 07:17 UTC by kovica
Modified: 2016-07-07 08:55 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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