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

From: Christian von Kutzleben <>
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

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

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

Thank you!


*Christian von Kutzleben*
Chief Software Engineer
Versant GmbH, Subsidiary of Actian Corporation
PHONE +49 40 60990-273
FAX +49 40 60990-113
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] <>[image:
Twitter-icon] <>[image:
You-Tube-icon] <>[image:]<>
*[image: cid:image001.jpg@01CC7916.C4DCFC40] <>*
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.

(image/jpeg attachment: image007.jpg)

(image/png attachment: image001.png)

(image/png attachment: image004.png)

(image/png attachment: image008.png)

(image/png attachment: image003.png)

(image/png attachment: image002.png)