Joined: Mon Oct 31, 2011 8:46 pm Posts: 3
|
Hi I was wondering is it possible to cast to a subclass in a criteria query like I have the following
class a extends t class t class d has a method get t
is it possible to do something like d.get("t").as("a").get("something in a");
I have tried Join<d, t> join = distribution.join("t"); Path path = ((Path) join.as(a.class)) path.get("somthing in a");
however join.as returns a CastFunction so it gives me a cast class exception.
One more thing the inheritance type is joined don't know if that helps.
Any ideas would be greatly appreciated.
|
|