0 Replies Latest reply on Apr 7, 2006 9:53 AM by Stefano Gallina

    EJBQL - How to get a field from a query

    Stefano Gallina Newbie

      Hi all,

      i have the following ejbql query :

      "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.

      Stefano