Saturday, December 31, 2011

Re: does lazy loading OneToMany Relationship fails RequestFactory proxies?



On Saturday, December 31, 2011 9:08:50 PM UTC+1, Elhanan wrote:
hi..
i'm trying use an entity employee which has JobHistory entities related to it..i should add that although jobHistory is considered an entity, it has an embeddedId which is a dervied from manytoOne relationships. 

anyway i tried using eager loading, but it still doesn't work. i get this:
com.google.web.bindery.requestfactory.server.UnexpectedException: The domain type com.hr.model.impl.JobHistory cannot be sent to the client
at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.die(ServiceLayerDecorator.java:216)
at com.google.web.bindery.requestfactory.server.ResolverServiceLayer.resolveClientType(ResolverServiceLayer.java:91)

Nothing to do with lazy-loading here: RF cannot find a proxy type for the domain class JobHistory (that matches the one declared as the employee proxy getter return type). It can be an issue with the ValidationTool, or with your code (mismatch between ProxyFor and your proxies and domain classes).

--
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/-/1x-CiiWd-TEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment