2 Replies Latest reply on Aug 1, 2002 9:48 AM by Anil Bholankar

    overriding equals method??

    Anil Bholankar Newbie

      Hi,
      I have a Container Managed bean which extends from a class which implements a "equals" method with following signature...
      -----------------------------------------------
      public boolean equals(Object object){
      ...........
      }
      -----------------------------------------------
      I am using this method to test if some objects are equal.
      The problem is this method is automatically called after the "setEntityContext()" call which I dont want(gives a nullpointerexception).
      IF I comment out this method, everything works fine.
      What I want to know is Am I overriding any equals method?
      Do I have to change this method name?
      Any help is appericated.
      Anil