implements optimistic locking for PackageEntity
This commit is contained in:
@ -19,6 +19,9 @@ public class PackageEntity {
|
||||
|
||||
private @Id UUID uuid;
|
||||
|
||||
@Version
|
||||
private int version;
|
||||
|
||||
@ManyToOne(optional = false)
|
||||
@JoinColumn(name = "customeruuid")
|
||||
private CustomerEntity customer;
|
||||
|
@ -7,6 +7,7 @@
|
||||
create table if not exists package
|
||||
(
|
||||
uuid uuid unique references RbacObject (uuid),
|
||||
version int not null default 0,
|
||||
customerUuid uuid references customer (uuid),
|
||||
name varchar(5),
|
||||
description varchar(96)
|
||||
|
Reference in New Issue
Block a user