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.
[Build 20050208] In CMP/CMR editor the changes aren't propagated to sun-cmp-mappings file.
plugin code needs to be updated to propagate add/remove cmp and cmr fields to cmp mapping
This is also true for removal of the cmp bean itself.
rochelle, please work with Rajeshwar on this bug. Talk to him.
Need to also handle field rename as mentioned in issue 55063.
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.
any quick status on this bug?
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.
Any update? Let us know.
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.
Filed issue 56008 for 3.
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)
[Build 20050330]
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.