Hi,
Can some body suggest how to query the Inhertance data. I have classes like this.
Class Fruit {
String color;
}
Class Apple extends Fruit {
String shape;
}
Class Mango extends Fruit {
String weight;
}
Class Bag {
Set<Fruit>
}
I want to query bag which contains mangos which is having weight 100gm and apples shape with round.
At the end i need Bag object with set of fruits , internally fruit instances should be apple and mangos.
Please suggest how to do this in QueryDSL.