Hello all,

   While I know that many get upset postings that relate to particular products, my 
problem may or may not product specific.  I am trying to deploy an entity bean and 
keep getting the same error(Weblogic).

Namely, In EJB Users, the primary key class must implement the method public int 
hashcode()

The problem is that I cannot figure out how to resolve the issue.  Below is my UsersPK 
file.  I assume that is what is giving me the error.  Any and all help will be greatly 
appreciated.

Thanks,
Greg



package untitled2;

public class UsersPK implements java.io.Serializable {

  public int id;

  public int hashcode(){
    return id;
    }

  public boolean equals(Object obj) {
    if(obj instanceof UsersPK) {
      return (id == ((UsersPK)obj).id);
      }
      return false;
    }

  public UsersPK(){}
  }

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to