Friday, November 22, 2013

One-To-Many and RequestFactory Proxy

I have two entities:

class A {
     @ ManyToOne
     @ Fetch (FetchMode.SELECT)
     @ JoinColumn (name = "b_id")
     B b;
}

class B {
     @ OneToMany (mappedBy = "b")
     @ Fetch (FetchMode.SELECT)
     List <A> a;
}

interface AProxy {
     B getB ();
     setB (B b);
}

interface BProxy {
     List <A> getA ();
     set (List <A> a);
}

If you do not use OneToMany list, then the ComboBox b in the editor does not work, but if you add a OneToMany to a class B then all is well.

Why is this happening?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment