Skip to content

Commit

Permalink
af
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamv108 committed Jan 8, 2024
1 parent e7380c1 commit c67f824
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package code.shubham.core.lock.web.v1.controllers;

import code.shubham.commons.annotations.Role;
import code.shubham.commons.exceptions.InvalidRequestException;
import code.shubham.commons.utils.ResponseUtils;
import code.shubham.commons.utils.StringUtils;
Expand Down Expand Up @@ -27,6 +28,7 @@

@RestController
@RequestMapping("/v1/locks")
@Role("ADMIN")
@SecurityRequirement(name = "BearerAuth")
@Tag(name = "Lock")
public class LockController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ public class Lock extends BaseIdEntity {
@Column(name = "expiry_at")
private Date expiryAt;

@Builder.Default
@Version
private Integer version = 0;
private Integer version;

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class LockRequestDTO {

@NotNull
@NotEmpty
@Builder.Default
private Integer previousVersion = 0;

}

0 comments on commit c67f824

Please sign in to comment.