Can someone tell me why the primary key class must
implement hashCode() and equals() method?

How should I implement them?

A primary key class can also be defined in a xml file.
 Is the primary key type limited to the string in this
scenario or can I use other datatypes like
int/double/long?

Thanks.

Joe Zhou


__________________________________________________
Do You Yahoo!?
Send instant messages with Yahoo! Messenger.
http://im.yahoo.com/

===========================================================================
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