jsr338-experts@jpa-spec.java.net

[jsr338-experts] locks and fetch graphs / eager fetching

From: Christian von Kutzleben <cvkutzleben_at_versant.com>
Date: Wed, 10 Jul 2013 09:55:51 +0200

Dear group,

In our understanding EntityManager.lock() only applies the lock to the
specified entity and
also during lazy loading triggered by object navigation locks won't get
propagated.

But if a user specifies a lock-mode in the find or refresh method or for a
query,
is this lock-mode supposed to be applied to all objects fetched* along
because
of FetchType.EAGER or a configured fetch graph as well?

*fetched, or would be fetched if not already in context

Thank you!

Christian

-- 
*Christian von Kutzleben*
Chief Software Engineer
Versant GmbH, Subsidiary of Actian Corporation
christian.vonkutzleben_at_actian.com
PHONE +49 40 60990-273
FAX +49 40 60990-113
www.actian.com
Versant GmbH is incorporated in Germany. Company registration number: HRB
54723, Amtsgericht Hamburg. Registered Office: Halenreie 42, 22359 Hamburg,
Germany. Geschäftsührer: Marc Monahan, Fred Gallagher, Volker John
[image: Facebook-icon] <http://www.facebook.com/actiancorp>[image:
Twitter-icon] <http://twitter.com/actiancorp>[image:
Linked-In-icon]<http://www.linkedin.com/company/actian-corporation>[image:
You-Tube-icon] <http://www.youtube.com/actiancorporation>[image:
http://davidwalsh.name/dw-content/googleplus-icon.png]<http://www.gplus.to/actiancorp>
*[image: cid:image001.jpg@01CC7916.C4DCFC40] <http://www.actian.com/>*
This transmission is confidential and intended solely for the use of the
recipient named above. It may contain confidential, proprietary, or legally
privileged information. If you are not the intended recipient, you are
hereby notified that any unauthorized review, use, disclosure or
distribution is strictly prohibited. If you have received this transmission
in error, please contact the sender by reply e-mail and delete the original
transmission and all copies from your system.








image007.jpg
(image/jpeg attachment: image007.jpg)

image001.png
(image/png attachment: image001.png)

image004.png
(image/png attachment: image004.png)

image008.png
(image/png attachment: image008.png)

image003.png
(image/png attachment: image003.png)

image002.png
(image/png attachment: image002.png)