What I meant is that, to me, it's unrelated to RequestFactory proper, and at 
least totally a server thing (it doesn't matter what your ProductProxy looks 
like, it's what the Product looks like on the server side that matters, 
because only the Product/ProductProxy EntityProxyId will go over the wire 
–look at the request payload–)
What RF will do with the above request is:

   1. create a ProductMargin
   2. load the Product by its ID
   3. call productMargin.setProduct(product)
   4. validate productMargin
   5. validate product
   6. etc. (create service instance, call persist method, etc.)

It fails at step 5 above, because product's group field (field, not 
property, it makes a big deal of a difference if you have lazy loading!) is 
null, whereas it has a @NotNull annotation.
Code this somewhere (in a unit test, a servlet, whatever) and run it. If it 
runs then you can blame RequestFactory; otherwise it'll help you debug your 
code.

-- 
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.

Reply via email to