Objectify - Retrieve subclass instances with superclass query

Posted by Deviling Master on Stack Overflow See other posts from Stack Overflow or by Deviling Master
Published on 2013-11-11T09:49:47Z Indexed on 2013/11/11 9:52 UTC
Read the original article Hit count: 149

for a project i'm making, i'm using Objectify and Google AppEngine

I'm quoting and old message from Google Groups, but the problem i have is the same:

Here's the problem I'm trying to solve: I'd like to persist instances of several subclasses of one superclass to the datastore, and then retrieve them by querying for that superclass.

(For example, a query for Game would return instances of Chess and Backgammon).

Is there any way to accomplish this using Objectify?

Because the thing i want is the same, but the topic does not provides yet an answer (it's 3 years old), I moved here with the same question.

From 2010 to now, this question has been solved?

Thanks Bye

© Stack Overflow or respective owner

Related posts about google-app-engine

Related posts about polymorphism