It looks like the feature request was accepted:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5367
This is an workaround, but it's how I'm planning to deal with the
polymorphism until it's fully supported by the request factory.
---------------------------------------------
interface FruitWrapper extends ValueProxy {
// returns null if the fruit is not an apple
AppleProxy getApple();
// returns null if the fruit is not a grape
GrapeProxy getGrape();
// etc...
// ...
}
interface MyEntityProxy extends EntityProxy {
void setFruit(FruitWrapper fruit);
FruitWrapper getFruit();
// More important is querying various fruits
List<FruitWrapper> queryFruits(some parameters);
}
---------------------------------------------
If there is a better option please share, I'd be very interested...