oh..it does mean we cannot use ejb3 yet.. right?
On Wed, Sep 2, 2009 at 2:13 PM, David Given <[email protected]> wrote: > > tolga ozdemir wrote: > [...] > > Can you enlighten me wheather we could use javax.persistence.* in our > > serialized DTO objects for the sake of RPC?? > > > > can I use @Table, @Id or other annotations? > > The GWT runtime ignores annotations --- they're not kept at runtime on > the client. So you can pass annotated objects perfectly happily over the > link and they'll work fine. > > I've had good experiences using Berkeley DB JE and GWT. It's possible to > query an object on the server, have Berkeley DB instantiate it for me, > and then just return it directly to the client for display. So I'd > imagine you could use something similar with javax.persistence. > > The only thing you probably need to be concerned with is that if you > instantiate an object on the server, pass it to the client, then pass it > back to the server, you're getting a different physical object than the > one you originally instantiated so the persistence layer might get its > cacheing confused. (Berkeley DB doesn't seem to be bothered by this.) > > -- > ┌─── dg@cowlark.com ───── http://www.cowlark.com ───── > │ > │ "They laughed at Newton. They laughed at Einstein. Of course, they > │ also laughed at Bozo the Clown." --- Carl Sagan > > > > -- Tolga Özdemir Mobile 0 536 963 7890 MSN [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
