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 142315 - Duplicate persistence relationship fields generated
Summary: Duplicate persistence relationship fields generated
Status: RESOLVED INVALID
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Dongmei Cao
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-30 21:12 UTC by Peter Liu
Modified: 2008-07-31 22:16 UTC (History)
0 users

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 Peter Liu 2008-07-30 21:12:15 UTC
Steps to reproduce:

1. Create a web project and run Entity Classes from Database.
2. Select jdbc/sample resource and select Customer and DiscountCode
tables and generate the code.

Open Customer.java and notice that there are discountCode and discountCode1 generated.
This is a regression.
Comment 1 Dongmei Cao 2008-07-30 21:36:18 UTC
Don't see the problem in a build from 080728. Will check in the latest code base.
Comment 2 Peter Liu 2008-07-31 22:16:57 UTC
It turns out my sample database tables all had duplicate foreign keys. I don't know how it got to that states but with
the sample database from the latest build, this issue no longer exists. I am closing it.