Hi,
I'm in this scenario.
There is the class A that has a list of object of class B.
I've a Ui where I can add and remove (for every object A) object B. Where I
remove object B from A and then persist, in my database is removed the
association from A -> B but the entity B is still in the table!!! So, seems
that orphanremoval don't work as expected.
I've the default implementation of setter and getter of A and B classes.
Thank very much
Daniele
Il giorno lunedì 16 luglio 2012 18:01:48 UTC+2, Jens ha scritto:
>
> And whats actually your problem? Or do you have the exact same problem as
> in the linked discussion?
>
> How is your setter implemented? In the linked discussion the problem is
> pretty much that the setter is implemented like
>
> public void setChildList(List childs) {
> //dereferences the original (hibernate) list which could cause the
> exception on commit.
> this.childs = childs;
> }
>
> instead of
>
> public void setChildList(List childs) {
> //keep the (hibernate) list so hibernate can track its changes
> this.childs.clear();
> this.child.addAll(childs);
> }
>
> --- J.
>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/xDJub0U1OeYJ.
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/google-web-toolkit?hl=en.