Hello list, I have this type of information on the ORM (Hibernate)
@Entity
class A {
// id, version, getter and setter omitted
String name;
@ManyToMany(cascade = CascadeType.ALL)
private List<B> selections = new ArrayList<B>();
}
@Entity
class B {
// id, version, getter and setter omitted
Boolean accepted;
}
now on the client side I can edit A entity with:
AProxy editableA = request.edit(returnedA);
editableA.setName("xxxx");
Request<Void> updateReq = request.persist().using(editableA);
updateReq.fire(...);
and on the db I got the new name "xxx".
But if I'll add this to change some values into B instance:
editableA.getSelections().get(1).setAccepted(true);
the changes are not stored into db!
I try to change the persist call with:
request.persist().using(editableA).with("selections").fire(...)
but nothing changes :(
any hints?
--
Luca Morettoni <luca(AT)morettoni.net> | http://www.morettoni.net
gtalk/msn: luca(AT)morettoni.net | http://twitter.com/morettoni
jugUmbria founder: https://jugUmbria.dev.java.net/ | skype: luca.morettoni
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" 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/google-web-toolkit?hl=en.