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 77152 - Entity Bean Generator (From database) generates incorret join table
Summary: Entity Bean Generator (From database) generates incorret join table
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Martin Adamek
URL:
Keywords:
: 77173 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-31 14:16 UTC by dyegoleal
Modified: 2016-04-06 21:07 UTC (History)
2 users (show)

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 dyegoleal 2006-05-31 14:16:39 UTC
The bug is:

If you have this db:

Table User:

id int (PK)
name varchar(25)

Table Group:

id int (PK)
name varchar(25)

Table User_Group ( one user has various groups and one group has various users)

id_user int (PFK)
id_group int (PFK)
id_invisible boolean <-- *** HERE IS THE PROBLEM... EXISTS ANOTHER FIELD , THIS
IS NOT A SIMPLE JOINTABLE , NEED TO A Entity TO CONTROL THEM... 


The Entity Generator classifies table User_Group to a simple join table and no
create a Entity for them...
Comment 1 Lukas Jungmann 2006-05-31 17:44:18 UTC
*** Issue 77173 has been marked as a duplicate of this issue. ***
Comment 2 Andrei Badea 2006-06-13 08:44:55 UTC
It is not clear if you mean the CMP Entity Bean from Database wizard or the
Entity Classes from Database one. However, I tried both on Derby with the
attached SQL script and three entity classes or beans were generated. Marking as
incomplete, please try to reproduce on a newer daily build and post more
details, such as the used database server and JDBC driver and a full SQL script
to create the tables. Thanks.
Comment 3 Andrei Badea 2006-07-19 19:07:00 UTC
I don't understand why this issue blocks issue 77605. Removing the dependency,
please explain if you re-add it.

Is this issue still reproducible in a recent daily build? If yes, please post a
SQL script which creates some tables that the issue can be reproduced with.
Otherwise please close the issue. Thanks!
Comment 4 dyegoleal 2006-07-19 19:18:08 UTC
The 5.5 dev resolve this issue.