>When creating an entity bean is there a good way to check whether
>the bean already exists in the database, instead of catching a duplicate
>ecord exception.
> know this can be done by retrieving all the entity beans and
>omparing primary keys for a match.  But is there a better alternative
>hich is less performance intensive.

use findByPrimaryKey and catch the FinderException.

===========================================================================
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".

Reply via email to