Noorzaie, Jamal wrote:

> Hi Group:

>       public Long ejbFindByPrimaryKey(Long pk) throws FinderException,
> RemoteException {
>               security_id_ = pk;              
>               return pk;
>       }


If your bean is CMP, you shouldn't implement ejbFindByPrimaryKey. If 
your bean were BMP, this wouldn't work anyway.


>        <cmp-field>
>          <field-name>username_</field-name>
>          <column-name>USERNAME</column-name>
>        </cmp-field>
>        <cmp-field>
>          <field-name>password_</field-name>
>          <column-name>PASSWORD</column-name>
>        </cmp-field>
>                        
>        <finder>
>              <name>findByUsernamePassword</name>
>       <query>username_ = {0} AND password_ = {1}</query>


Once more: use the column names here, not the Bean's field names. In 
other words:
         <query>username = {0} AND password = {1}</query>


Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.

Reply via email to