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 54867 - add/remove cmp field not propagated to cmp mapping
Summary: add/remove cmp field not propagated to cmp mapping
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Rochelle Raccah
URL:
Keywords:
Depends on: 55382 56008 56198
Blocks:
  Show dependency tree
 
Reported: 2005-02-11 12:33 UTC by Petr Blaha
Modified: 2006-03-24 12:45 UTC (History)
1 user (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 Petr Blaha 2005-02-11 12:33:38 UTC
[Build 20050208]
In CMP/CMR editor the changes aren't propagated to
sun-cmp-mappings file.
Comment 1 Rochelle Raccah 2005-02-14 07:24:00 UTC
plugin code needs to be updated to propagate add/remove cmp and cmr 
fields to cmp mapping
Comment 2 Rochelle Raccah 2005-02-16 02:05:17 UTC
This is also true for removal of the cmp bean itself.
Comment 3 _ ludo 2005-02-18 17:23:59 UTC
rochelle, please work with Rajeshwar on this bug. Talk to him.
Comment 4 Rochelle Raccah 2005-02-18 22:19:59 UTC
Need to also handle field rename as mentioned in issue 55063.
Comment 5 jielin 2005-02-18 23:16:16 UTC
adding a cmp/remove field to the bean is not showing up in cmp mappings.
restart netbeans, the added/removed cmp field is shown up/deleted in
cmp mappings.
Comment 6 _ ludo 2005-02-28 18:32:06 UTC
any quick status on this bug?
Comment 7 Rochelle Raccah 2005-03-01 01:57:33 UTC
Status is that issue 55382 appears to be fixed, so I can start working
on this.  There is a new issue 55614 that means we will start getting
multiple events, but I will continue working on this now that I can
see the events at all.

Also, it is not clear to me whether it is possible to do a rename
(bean, cmp or cmr field) from the ui.
Comment 8 _ ludo 2005-03-04 06:40:33 UTC
Any update?
Let us know.
Comment 9 Rochelle Raccah 2005-03-04 07:31:00 UTC
Update: I have basic support for add bean, cmp field, cmr field
working, though there is a problem getting the data of the inverse cmr
field during that IDE session.

I have basic support for removing a bean, cmp field, cmr field
working.  But (not done yet):
1) removing an entire relationship from the multiview editor - I don't
get the cmr field remove events
2) if a bean has been opened in the cmp mapping tab already in this
IDE session and one of these events occurs, it is not refreshed yet
3) there appears to be a problem saving files (separate bug?) when
these type of changes have been made before the customizer has been
opened - the changes to update the sun-ejb-jar and sun-cmp-mappings
happen in memory and should be persisted to the xml files on save, but
the files are not saved all the time
4) missing inverse info on cmr fields (mentioned above)
5) I don't have any support for rename yet.  I think it cannot be done
from the Enterprise Beans nodes, but maybe from the bean impl source nodes

It still needs lots of testing and the 5 todo items above.  Due to the
planned outage next week, I think it will have to be done after that.
Comment 10 Rochelle Raccah 2005-03-05 00:30:16 UTC
Filed issue 56008 for 3.
Comment 11 Rochelle Raccah 2005-03-11 23:29:06 UTC
Marking as fixed.  Current status:
- add/remove cmp field from logical view node is working
- add cmr field in multiview editor adds both sides, but inverses are not known
which means mapping might not be able to be set until after ide restart (number
4 above)
- remove cmr field from from logical view node is working
- remove cmr field by removing multiview editor usually removes both sides, but
not always (number 1 above, appears to be related to whether you have browsed to
both beans mapping yet or not)
- rename cmp field is working (number 5 above)
- rename cmr field - not working - see issue 56198
- add/remove bean is working
- rename bean - not sure how to do this, not tested (number 5 above)
- doing any of the above by directly doing it in the xml editor - not tested
- if add/remove bean/field/cmr field before editor opens, then open it, ui is
correct, but blocking issue 56008 means it is not saved to xml (number 3 above)
- bean refresh is working (number 2 above)
Comment 12 Petr Blaha 2005-03-31 13:39:12 UTC
[Build 20050330]
Comment 13 Rochelle Raccah 2005-04-05 00:31:54 UTC
Now that issue 56198 is fixed, the rename cmr field portion of this bug can be
tested.  It is not working.  I have filed issue 57460 for this.