Just change the name of method 'hashcode' to 'hashCode'
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Me�ssa Mbaye SAKHO
Sent: Wednesday, January 03, 2001 3:27 PM
To: [EMAIL PROTECTED]
Subject: weblogic ejbc error
hi all,
I have a problem with weblogic ejbc tool
when I try to generate ejb_jar file , I recieve a message saying primary key
class must
implements hashcode method.
here is my primary key class.
package services;
public class CleStr implements java.io.Serializable {
public String astrId;
public CleStr() {
super();
}
public CleStr(String poStrId) {
astrId=poStrId;
}
public boolean equals(Object autreCle) {
if (autreCle instanceof CleStr) {
return (astrId == (((CleStr) autreCle).getId()));
}
return false;
}
public java.lang.String getId() {
return astrId;
}
public int hashcode() {
return astrId.hashCode();
}
public void setId(java.lang.String newId) {
astrId = newId;
}
}
can some one helps me
Meissa
===========================================================================
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".
===========================================================================
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".