| | |
| | | |
| | | import com.rongyichuang.common.entity.BaseEntity; |
| | | import jakarta.persistence.*; |
| | | import org.hibernate.annotations.Where; |
| | | |
| | | @Entity |
| | | @Table(name = "t_tag") |
| | | @Where(clause = "state = 1") |
| | | public class Tag extends BaseEntity { |
| | | |
| | | @Column(name = "name", length = 50, nullable = false) |
| | |
| | | |
| | | @Column(name = "category", length = 20, nullable = false) |
| | | private String category; // 'major' 表示专业标签 |
| | | |
| | | /** |
| | | * 状态:1-正常,0-删除 |
| | | */ |
| | | @Column(name = "state", nullable = false) |
| | | private Integer state = 1; |
| | | |
| | | // Getter and Setter methods |
| | | public String getName() { |
| | |
| | | public void setCategory(String category) { |
| | | this.category = category; |
| | | } |
| | | |
| | | public Integer getState() { |
| | | return state; |
| | | } |
| | | |
| | | public void setState(Integer state) { |
| | | this.state = state; |
| | | } |
| | | } |