0 Replies Latest reply on Apr 27, 2005 7:29 PM by Tundra de Lagrimas

    Class cast exception with Set return value in finder method

    Tundra de Lagrimas Newbie

      Hi everyone, I'm having some problems with a finder method, this method work when I set the return type to Collection, but when I set it to Set a ClassCastException occurs, I want to use a Set to return unique values, but I cannot make it work, anyone have aany advice?

      Set sP = oHome.findPropertiesUnique(); // This is the home object calling the finder
      public Set findPropertiesUnique () throws FinderException, RemoteException; // This is the finder method declaration;

      the ejb-ql is working because with Collection returns all elements in the table. Hope someone can help. Thanks