Philip Aston wrote:
>
> Rickard �berg writes:
> > Sachin Aggarwal wrote:
> > > Shouldn't the finder methods that use non key attributes for
> > > search look in the memory if the entity was not found in the
> > > database .
> > >
> > > This of course is relevant only in the case where the entity was
> > > created in the same transaction as the finder method invocation.
> >
> > Why do you need these two ops to be done in the same transaction? If you
> > did the create in one tx, and the find in another tx, then you would not
> > have the above problem.
>
> Whatever, surely the container should _support_ finding an entity that
> was created in the same transaction?
Yes, the create should (AFAIK) do a "insert" call to the db, so any
finders within the same tx should see the new entity, and hence be able
to find it.
That said, I would still like to see why the create and find must be
done in the same tx.
/Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
Homepage: http://www-und.ida.liu.se/~ricob684
===========================================================================
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".