sorry, this is a kind of double posting, though it's not exactly the
same error as this one:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/6680775a0c925397
because it also occurs with compiled code.
when removing the JPA 2 annotations the entity can be deserialized
(sent to the server). I copied the entity AdminConfiguration to class
AdminConfiguration2, removed the JPA 2 annotations and the call to
testService.sendConfig2() works (while sendConfig1() fails).
AdminConfiguration cfg1 = new AdminConfiguration();
cfg1.setHelpText("Hello World.");
testService.sendConfig1(cfg1, new VoidCallbackAdapter<Void>());
AdminConfiguration2 cfg2 = new AdminConfiguration2();
cfg2.setHelpText("Hello World.");
testService.sendConfig2(cfg2, new VoidCallbackAdapter<Void>());
this is the service:
@Service("testService")
public class TestServiceImpl implements TestService {
Logger log = LoggerFactory.getLogger(TestServiceImpl.class);
public void sendConfig1(AdminConfiguration cfg) {
log.debug("sendConfig1(): {}", cfg.getHelpText());
}
public void sendConfig2(AdminConfiguration2 cfg) {
log.debug("sendConfig2(): {}", cfg.getHelpText());
}
}
same workaround here: use data transfer objects
--
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.