My children are stored in an IList<T> implemented by List<T> as i need to preserve order of the children
On Jun 2, 4:18 pm, Oskar Berggren <[email protected]> wrote: > What list are you talking about? > > /Oskar > > 2009/6/2 Michal <[email protected]>: > > > > > Looks like I have solved it now ... it was an issue of cascades ... > > I had all-delete-orphan on the Parent and Childs ... Changed it to > > "all" and now it seems to work ... > > > Could someone explain me why is that .. I am afraid I dont :) > > > On Jun 2, 3:15 pm, Michal <[email protected]> wrote: > >> Hi all, > > >> I have am experiencing very strange behavoir on my self-referencing- > >> tree when moving nodes around. > > >> + Root > >> ++ Node 1 > >> +++ Node 1.1 > >> ++ Node 2 > > >> What are the steps required when moving a sub tree into another part > >> of the tree (e.g. Moving Node 2 into Node 1.1) > >> currently i am doing the following > > >> // load source node with get by id > >> // load destination node with get by id > >> // Change the source parent to point to the destination node > >> // saveOrUpdate destination node > > >> That works fine but The index is not maintained correctly. I have a > >> gap in the index numbers => 0, 2 (1 is missing) > >> As a result the list is loaded with a NULL element on retrival > > >> thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
