2 changed files with 41 additions and 0 deletions
@ -0,0 +1,31 @@ |
|||||
|
package com.project.information.domain.entity; |
||||
|
|
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.IdType; |
||||
|
import com.baomidou.mybatisplus.annotation.TableField; |
||||
|
import com.baomidou.mybatisplus.annotation.TableId; |
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.project.base.domain.entity.BaseEntity; |
||||
|
import jakarta.persistence.*; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
import org.hibernate.annotations.Comment; |
||||
|
|
||||
|
@Data |
||||
|
@Table(name = "evaluator_knowledge_point" , indexes = {@Index(name = "Idx_informationId", columnList = "information_id")}) |
||||
|
@Entity |
||||
|
@TableName(value = "evaluator_knowledge_point") |
||||
|
@EqualsAndHashCode(callSuper = true) |
||||
|
public class KnowledgePointEntity extends BaseEntity { |
||||
|
@TableId(value = "id" , type = IdType.ASSIGN_ID) |
||||
|
@Id |
||||
|
private Long id; |
||||
|
|
||||
|
@Column(name = "content", columnDefinition="TEXT comment '原始知识点文本内容'") |
||||
|
private String content; |
||||
|
|
||||
|
@Column(name = "information_id") |
||||
|
@Comment("来源资料id") |
||||
|
@TableField("information_id") |
||||
|
private Long informationId; |
||||
|
} |
||||
@ -0,0 +1,10 @@ |
|||||
|
package com.project.information.mapper; |
||||
|
|
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.project.information.domain.entity.KnowledgePointEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
@Mapper |
||||
|
public interface KnowledgePointMapper extends BaseMapper<KnowledgePointEntity> { |
||||
|
} |
||||
Loading…
Reference in new issue