Hallo,

i think you made a typo, "hashCode", not "hashcode".

Hans

> -----Urspr�ngliche Nachricht-----
> Von:  Me�ssa Mbaye SAKHO [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Mittwoch, 3. Januar 2001 10:57
> An:   [EMAIL PROTECTED]
> Betreff:      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".

Reply via email to