Hi!

Jon Finanger wrote:
> When an ejbFindByPrimaryKey is invoked, is the primarykey found based on
> computing the hashcode and comparing the pk's using equals(..) if a
> collision is detected?

Yes, this is why the EJB spec. requires you to implement equals and
hashCode in your primary key.

> What kind of hashing strategy is used internally?

We currently have a hashing scheme based on long's along with the above.

> In BMP: is the use of hash() and equals() just for internal container use?

Yes, unless you want to use those yourself in code of course.

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com


Reply via email to