Yes, the home interface of every entity bean must have the
findByPrimaryKey method, and every entity class with bean
managed persistence must define the ejbFindByPrimaryKey
method.
The implementation of the ejbFindByPrimaryKey should verify
that the entity with the given primary key exists.
Vlada
-----Original Message-----
From: Saurabh Sahai <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, March 25, 1999 9:08 PM
Subject: findByPrimaryKey
>Hi,
>
>I have a small query.
>
>The EJB specsec 8.3.2 page 52, note states :
>"The findByPrimaryKey(primaryKey) method is mandatory for all entity Beans"
>
>Also sec 9.4.1 page 65 last paragraph states
>"public primaryKey type or collection ejbFind<METHOD>(...)
>
>The container invokes this method on the instance when the container selects
>the instance to execute a matching client invoked find<METHOD>(...) method."
>
>
>From the above 2 points, does'nt this imply that for any entity bean there
>has to be an ejbFindByPrimaryKey(..) method.
>
>If this is the case, should'nt the ejbFindByPrimaryKey be a part of the
>EntityBean interface.
>
>Thanks
>-Saurabh
>
>===========================================================================
>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".