We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6384f44 commit d393770Copy full SHA for d393770
1 file changed
backend/src/main/java/ch/puzzle/pcts/model/role/Role.java
@@ -3,11 +3,11 @@
3
import jakarta.persistence.*;
4
import java.time.LocalDateTime;
5
import org.hibernate.annotations.SQLDelete;
6
-import org.hibernate.annotations.Where;
+import org.hibernate.annotations.SQLRestriction;
7
8
@Entity
9
@SQLDelete(sql = "UPDATE role SET deleted_at = CURRENT_TIMESTAMP WHERE id = ?")
10
-@Where(clause = "deleted_at IS NULL")
+@SQLRestriction("deleted_at IS NULL")
11
public class Role {
12
@Id
13
@GeneratedValue(strategy = GenerationType.AUTO, generator = "sequence_role")
0 commit comments