adding soft delete
This commit is contained in:
@@ -2,6 +2,8 @@ package zw.qantra.tm.domain.models;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import lombok.*;
|
||||
import org.hibernate.annotations.SQLRestriction;
|
||||
import org.hibernate.annotations.Where;
|
||||
|
||||
|
||||
@Entity
|
||||
@@ -10,6 +12,7 @@ import lombok.*;
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SQLRestriction("deleted = false")
|
||||
public class Provider extends BaseEntity {
|
||||
private String clientId;
|
||||
private String label;
|
||||
|
||||
Reference in New Issue
Block a user