google-code-export / objectify-appengine

Automatically exported from code.google.com/p/objectify-appengine
MIT License
1 stars 0 forks source link

Key should have getKind() not getKindClassName() if possible #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Key used to have a getKind(), but that was changed to
getKindClassName() for GWT serialization purposes. I'd like that try
and change that back, if I can work out how to still get it to work
with serialization. Using Kind instead of KindClassName seems more
orthogonal to the datastore Key's class. 

From http://groups.google.com/group/objectify-appengine/msg/bf8d30ffa59d0f6e

Original issue reported on code.google.com by spudbean on 4 Feb 2010 at 11:01

GoogleCodeExporter commented 9 years ago
This is not easily implemented, because Class is not GWT-serializable, and you 
can't
call Class.forName() on the client side.

It might be possible to use a GWT generator, if you could detect all the 
possible
entities in use, but that can't be done reliably.

Original comment by spudbean on 8 Feb 2010 at 11:21