I am wondering if domain version will be changed if oneToMany relation is updated. e.g There is User entity which has OneToMany relation to Addresses . So if I am updating Addresses list will it have impact on user version ?
@Entity public class User {
@Id @Column(name = "id")
@GeneratedValue
private Long id;
@OneToMany (mappedBy = "document")
public Set<Addresses> userAddresses;
@Version @Column(name="OPTLOCK")
public Integer getVersion() { ... }
}