On Mon, 21 Aug 2000 13:23:48 +0200, Jon Finanger
<[EMAIL PROTECTED]> wrote:
>> >Is it neccesary to compute the hashCode() in BMP?
>>
>> Yes. Primary key classes must always implement both hashCode and equals.
>
>Whats the reason for that?
>I was a kind of thinking that this was a special case/most useful for
>CMP....
The reason is that EJB containers use this internally to maintain
hashtables where the pk is used as key and the instances are the values.
Without the bean developer telling how identity is defined, there is no
way to do that.
/Rickard
--
Rickard Öberg
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.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".