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 70501 - User can't map relationship field for 1:M, M:N
Summary: User can't map relationship field for 1:M, M:N
Status: RESOLVED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 5.x
Hardware: PC All
: P4 blocker (vote)
Assignee: Rochelle Raccah
URL: http://www.netbeans.org/servlets/Brow...
Keywords:
Depends on: 70649 70672
Blocks:
  Show dependency tree
 
Reported: 2005-12-16 13:12 UTC by Petr Blaha
Modified: 2007-12-10 21:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (121.68 KB, image/jpeg)
2005-12-16 13:15 UTC, Petr Blaha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2005-12-16 13:12:43 UTC
[build 20051213]
Steps to reproduce:
1) create EJB module
2) generate CMP beans from database
3) open visual editor of ejb-jar.xml file and add 1:M or M:N relationship
4) save changes
5) open sun-ejb-jar.xml and try to map new CMR field. User can't select related
bean. Therefore, can't finish this wizard.
I tested this and realized that this is working for 1:1 relationship. See
screenshot.
Comment 1 Petr Blaha 2005-12-16 13:15:07 UTC
Created attachment 27891 [details]
screenshot
Comment 2 Jan Horvath 2005-12-16 13:47:27 UTC
I can reproduce this issue with unidirectional relationship
Comment 3 Rochelle Raccah 2005-12-21 00:03:27 UTC
If you restart the IDE, then repeat step 5, it works, so it appears there is
some problem with the meta data coming from the schema2beans beans representing
the ejb-jar.xml.  Downgrading to P3.
Comment 4 Rochelle Raccah 2005-12-21 19:21:10 UTC
User has confirmed that it works after restart. In fact, he says it even works
after some delay:
"Actually i noticed one more thing. I was working on my Netbeans project and
then went away from the computer for a couple of hours without turning it off.
After i came back, i suddenly could map the relationship field. Seems to me as
if the information entered in the descriptor file by creating the relationship
are net periodically updated in the graphical editor."

This reinforces the belief I have that it is related to the validity of the
ejb-jar.xml schema2beans metadata.  I therefore think that this depends on
recently filed issue 70649.
Comment 5 Jan Horvath 2006-01-03 09:56:23 UTC
issue #70649 is allready fixed and verified in 5.0 branch but it didn't solve this issue. Before restart of IDE 
I'm not able to map CMR field and after restart of IDE I get NPE when expanding beans's nodes in sun-ejb-
jar.xml.
I therefore think that this now it depends on issue #70672.
Comment 6 _ pcw 2006-01-07 22:53:28 UTC
See workaround.  Defer to promo-G.
Comment 7 _ pcw 2007-08-25 09:19:30 UTC
This issue affects the CMP UI present in the 5.5 config editor, which is not present in 6.0 and is deferred to post 6.0
if it ever comes back.
Comment 8 Vince Kraemer 2007-12-08 04:04:09 UTC
Please re-evaluate.
Comment 9 _ pcw 2007-12-08 08:16:08 UTC
What's to reevaluate?  It's a dead bug unless we put the CMP UI back into the sun-ejb-jar.xml editor.

Admittedly not likely but if we did, this would presumably become a valid bug again.

I will downgrade it to P4.  It's certainly shouldn't against our P3 cap under the current circumstances (e.g it cannot
be reproduced in 6.0 but only in some hypothetical future version that may never exist.)
Comment 10 Rochelle Raccah 2007-12-10 21:12:43 UTC
CMP UI not present in NB 6.  "cmp" in whiteboard can be used to find these issues if we reenable the CMP UI.