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.
As configuration, I've used polymorphism on Objectify. I have a class "Game" annotated with "@Entity" and 2 classes ("Chess" and "Backgammon"), that extends Game, annotated with "@Subclass".
If i query on "Game", i get 2 Game instances. But i want to get Chess and Backgammon instances
From 2010 to now, this question has been solved?
Thanks Bye