| | |
| | | import com.rongyichuang.common.entity.BaseEntity; |
| | | import com.rongyichuang.tag.entity.Tag; |
| | | import jakarta.persistence.*; |
| | | import org.hibernate.annotations.Where; |
| | | import java.util.HashSet; |
| | | import java.util.Set; |
| | | |
| | | @Entity |
| | | @Table(name = "t_judge") |
| | | @Where(clause = "state = 1") |
| | | public class Judge extends BaseEntity { |
| | | |
| | | @Column(name = "name", length = 64, nullable = false) |
| | |
| | | |
| | | @Column(name = "gender") |
| | | private Integer gender; // 0-女, 1-男 |
| | | |
| | | @Column(name = "state", nullable = false) |
| | | private Integer state = 1; // 状态:1-正常 |
| | | |
| | | @Column(name = "role_id") |
| | | private Long roleId; |
| | |
| | | @Column(name = "introduction") |
| | | private String introduction; |
| | | |
| | | /** |
| | | * 状态:1-正常,0-删除 |
| | | */ |
| | | @Column(name = "state", nullable = false) |
| | | private Integer state = 1; |
| | | |
| | | @ManyToMany(fetch = FetchType.LAZY) |
| | | @JoinTable( |
| | | name = "t_judge_tag", |