Hi Christian!
For the basic finder method findByPrimaryKey(KeyType key) you just have
to include a line into your Home Interface like that:
public User findByPrimaryKey(String uid) throws FinderException,
RemoteException;
^^^^ RemoteInterface !!!
You can look at the already defined CUSTOM finder methods by opening
jaws.xml in EJX, clicking on the bean and changing the tab to "Finders".
findByPrimaryKey is not listed there.
What you want to do is generate your jaws.xml without the custom finder
methods and then extend the appropriate <entity>...</entity> section
with something like that:
<finder>
<name>findRealByEmail</name>
<query>PrimaryEmail={0} AND Type=2</query>
<order>PrimaryEmail</order>
</finder>
{x} is replaced by the parameter.
The related entry in the Home Interface would be here:
public Collection findRealByEmail(String email) throws FinderException,
RemoteException;
Any more questions ?
Cheers,
Tobias
Christian Seifert wrote:
>
> Where do you define the CMP Beans home objects finder methods. This should
> happen in the deployment descriptor and therefore using ejx, right? I
> couldn't find it though.
> Christian
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]