"select distinct a.name from A as a where a.name is not null"
the quey give me back a collection, but when i try to cast an object of this collection i got a ClasscastException. What kind of objects are contained in this collection ? The name attribute is a String, but the collection doesn't contain strings. I use EJBQL 2.0. Any idea ? Cheers.