I just wanna get a list of object distinct by one property of the objects, as using following HQL:
Code:
List allObjs = new ObjectManager().find("select distinct o.OneProp from Object o where 0.OtherProp = someValue");
but when I convert the object in the list like:
Code:
(Object)o = (Object)allObjs.get(i);
,the ClassCastException occured!
It looks like the above find() method only returns a list of property, not the object, but what I want is the object, so is there anybody can tell me the right HQL?
Yours,
Wang Q