1
0

implements optimistic locking for PackageEntity

This commit is contained in:
Michael Hoennig
2022-08-20 12:29:14 +02:00
parent 5ea8069608
commit a04929453c
4 changed files with 72 additions and 19 deletions

View File

@ -19,6 +19,9 @@ public class PackageEntity {
private @Id UUID uuid;
@Version
private int version;
@ManyToOne(optional = false)
@JoinColumn(name = "customeruuid")
private CustomerEntity customer;