On Apr 23, 1:18 pm, jbdhl <[email protected]> wrote:
> I use app engine's datastore with JDO, which is able to store classes
> if they are "@PersistenceCapable". But annotations like
> "@PersistenceCapable" is, as far as I understand, not available in GWT
> (the client side), forcing me to re-implement the model classes
> without the "@Persistent"-annotations for the client side. Is that
> correct? Are there any short cuts I could take on that?

Source code for the annotations are only needed if used by generators,
which is probably not the case here.
I made a prototype 2 months ago for a co-worker, that passes
@PersistenceCapable classes through GWT-RPC services, and it "just
works".
On the retrospect though, I don't think it's a very good approach. The
risk is that you send half the database on one GWT-RPC call, because
of dependencies (one-to-one, one-to-many, etc.) between your
persistent objects. This is made even easier with GWT-RPC because you
don't really think of what goes on the wire (you generally think of
what you want to retrieve rather than what you have to send, which can
lead to sending much more than required)

-- 
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.

Reply via email to