users@jpa-spec.java.net

[jpa-spec users] [jsr338-experts] Re: lockModes and eager fetching

From: Linda DeMichiel <linda.demichiel_at_oracle.com>
Date: Fri, 23 Mar 2012 13:55:12 -0700

Hi Christian,

On 3/23/2012 6:30 AM, Christian Romberg wrote:
> Dear group,
>
> Maybe this has been discussed already -- my apologies, if this is the case:
>
> Is there any propagation of lockModes along with eager fetching?
>
> From my understanding of the spec it seems, that the lockMode used in most operations (e.g. find, refresh)
> is only applied to the entities which are the direct argument of these operations and not to any
> entities which are loaded via eager fetching along with these objects.
>
> (Also, if an referred object was not eagerly fetched, but is eventually loaded (e.g. by navigation), the current lockMode
> of the owner of the reference is not applied for this lazily fetched object.)
>
> Please let me know, whether my understanding is correct.
>

Yes.

regards,

-Linda

> Thank you!
>
> Christian
>
> --
> Christian Romberg
> Chief Engineer| Versant GmbH
> (T) +49 40 60990-0
> (F) +49 40 60990-113
> (E) cromberg_at_versant.com <mailto:cromberg_at_versant.com>
> www.versant.com
> <http://www.google.com/url?q=http%3A%2F%2Fwww.versant.com%2F&sa=D&sntz=1&usg=AFrqEzeeEBc_gN_8mxtt8xDB0tjXDXQVlw>|
> www.db4o.com <http://www.google.com/url?q=http%3A%2F%2Fwww.db4o.com%2F&sa=D&sntz=1&usg=AFrqEzdo3Q40RwKQPBtnPIuBYQd1diFxJQ>
>
> --
> Versant
> GmbH is incorporated in Germany. Company registration number: HRB
> 54723, Amtsgericht Hamburg. Registered Office: Halenreie 42, 22359
> Hamburg, Germany. Geschäftsführer: Bernhard Wöbker, Volker John
>
> CONFIDENTIALITY
> NOTICE: This e-mail message, including any attachments, is for the sole
> use of the intended recipient(s) and may contain confidential or
> proprietary information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the intended recipient,
> immediately contact the sender by reply e-mail and destroy all copies of
> the original message.
>
>
>