Hi,
Your method name is hashcode() instead of
public int hashCode()
HTY
Harish
Me�ssa Mbaye SAKHO wrote:
> 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".