Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement pessimistic lock support #438

Open
beikov opened this issue Sep 5, 2017 · 2 comments
Open

Implement pessimistic lock support #438

beikov opened this issue Sep 5, 2017 · 2 comments

Comments

@beikov
Copy link
Member

beikov commented Sep 5, 2017

Currently only optimistic locking is implemented, but the annotation model already supports configuring pessimistic locking. We need to implement the locking correctly and add tests.
As part of this, we should also add an API for allowing to override the lock mode via EntityViewSetting. Also think of how other lock modes like e.g. SKIP_LOCKED could be supported.

@david-kubecka
Copy link
Contributor

Any update or possibly even ETA? We would like to use LockMode.PESSIMISTIC_WRITE.

@beikov
Copy link
Member Author

beikov commented Feb 6, 2023

Sorry, no ETA yet, but you can look into it if you want. I guess a good start would be to express the expectations in a draft PR as tests in a first round. The EntityViewSetting API for applying lock modes can be as simple as void setLockMode(LockMode) + void setLockMode(LockMode, String attributePath). Might be worth adding our own LockMode enum though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants