Hi All, here is my code:

@Entity
public class Contact {
...
   @OneToMany(mappedBy="contact", targetEntity=Tag.class,
fetch=FetchType.EAGER)
   private List<Tag> tags;
...
}

I'm using RequestFactory to fetch ContactProxy, but .getTags() on
value returns NULL.... I've tried to inspect the contactProxy entity
and found what tags field representing as HashMap, not as List:

{requestContext=null,
parentObject=com.test.Test.shared.ContactProxyAutoBean_com_google_gwt_requestfactory_shared_impl_EntityProxyCategory_com_google_gwt_requestfactory_shared_impl_ValueProxyCategory_com_google_gwt_requestfactory_shared_impl_BaseProxyCategory@1eb3560,
stableId=IjAi@0...@com.test.test.shared.ContactProxy, version=MQ==}

I've expected, that as soon as ContactProxy fetched, all tags will be
pre-fetched also... What I'm doing wrong? Thx!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to