Skip to content

Commit

Permalink
Make locker positions unique
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakubk15 committed Dec 31, 2024
1 parent 7ddc481 commit 602d353
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class LockerWrapper {
@DatabaseField(columnName = "description")
private String description;

@DatabaseField(columnName = "position", persisterClass = PositionPersister.class)
@DatabaseField(columnName = "position", persisterClass = PositionPersister.class, unique = true)
private Position position;

LockerWrapper() {
Expand Down

0 comments on commit 602d353

Please sign in to comment.