> 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
> record exception.
> I know this can be done by retrieving all the entity beans and
> comparing primary keys for a match.  But is there a better alternative
> which is less performance intensive.

What is wrong with a findByPrimaryKey() call?

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