Well I think it is safe to say that all EJB servers are case-sensitive about
Java method names ;-)
the method is :
public int hashCode()
http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#hashCode
()
cheers,
jmp
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Greg H.
> Sent: Thursday, July 27, 2000 2:05 PM
> To: [EMAIL PROTECTED]
> Subject: Newbie question - Problem Deploying
>
>
> 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".
>
>
>
===========================================================================
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".