I didn’t look into your entity model yet, but I guess the “owner” is on the many-side. Here is a nice article about this topic: https://vladmihalcea.com/hibernate-collections-optimistic-locking/