Wrap it in a POJO that doesn't use any of the server side classes. This is typically called a "DTO" or "data transfer object", but chances are you want to use an object anyway. You might also want to look into Objectify - those classes are safe to serialize and use as DTOs *and* persistable classes.
-- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Sun, Oct 10, 2010 at 4:54 AM, Pedro Ferreira <[email protected]> wrote: > Hi There, > > I am beginning an GAE + GWT Application, and I have a simple question, > that I think you guys knows the answer JIT: > > I want to do this: > > Facts: > 1. I have an entity in my server package > (aplicationid.server.MyEntity) > 2. I have a server-side method that returns a MyEntity object > I want to: > USE THIS METHOD in client-side part!!! > > It seems I can't use the Entity Class inside the client package, because > its source code is not available there. > > How can I solve this simple problem? > > Thanks, > > Pedro. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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-appengine?hl=en.
