"public int hashCode ()", not "public int hashcode ()"...
-----Message d'origine-----
De : A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]De la part de Me�ssa Mbaye SAKHO
Envoy� : mercredi 3 janvier 2001 10:57
� : [EMAIL PROTECTED]
Objet : 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".