[hibernate-issues] [JIRA] (HHH-14043) Two concurrent element shifts in a list damage database integrity.

Christian Beikov (JIRA) jira at hibernate.atlassian.net
Fri Jun 19 04:23:40 EDT 2020


Christian Beikov ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A0222998d-a0c8-4789-91ec-6a92d10dfb9a ) *commented* on HHH-14043 ( https://hibernate.atlassian.net/browse/HHH-14043?atlOrigin=eyJpIjoiOTgxYWE1YTgzYTFiNDUzODkxYTVjOTc2MTdlNTIxZjMiLCJwIjoiaiJ9 )

Re: Two concurrent element shifts in a list damage database integrity. ( https://hibernate.atlassian.net/browse/HHH-14043?atlOrigin=eyJpIjoiOTgxYWE1YTgzYTFiNDUzODkxYTVjOTc2MTdlNTIxZjMiLCJwIjoiaiJ9 )

You are asking very basic JPA questions and I don’t think this is the right place to ask these question.

I don’t want to be rude but maybe you should buy a book about JPA/Hibernate and read about the core concepts to understand this better. In general, optimistic locking requires a version field, that’s just how optimistic locking works. You could also use pessimistic locking which uses a database lock, but that only holds for the transaction lifetime.

( https://hibernate.atlassian.net/browse/HHH-14043#add-comment?atlOrigin=eyJpIjoiOTgxYWE1YTgzYTFiNDUzODkxYTVjOTc2MTdlNTIxZjMiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-14043#add-comment?atlOrigin=eyJpIjoiOTgxYWE1YTgzYTFiNDUzODkxYTVjOTc2MTdlNTIxZjMiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100130- sha1:5f5b10c )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200619/42ebfa42/attachment.html 


More information about the hibernate-issues mailing list