Skip to content

Commit d393770

Browse files
committed
fix: change from @where to @sqlrestriction because where is obsoltetd #34
1 parent 6384f44 commit d393770

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • backend/src/main/java/ch/puzzle/pcts/model/role

backend/src/main/java/ch/puzzle/pcts/model/role/Role.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
import jakarta.persistence.*;
44
import java.time.LocalDateTime;
55
import org.hibernate.annotations.SQLDelete;
6-
import org.hibernate.annotations.Where;
6+
import org.hibernate.annotations.SQLRestriction;
77

88
@Entity
99
@SQLDelete(sql = "UPDATE role SET deleted_at = CURRENT_TIMESTAMP WHERE id = ?")
10-
@Where(clause = "deleted_at IS NULL")
10+
@SQLRestriction("deleted_at IS NULL")
1111
public class Role {
1212
@Id
1313
@GeneratedValue(strategy = GenerationType.AUTO, generator = "sequence_role")

0 commit comments

Comments
 (0)