ClassGroupRelation.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. package com.ym.mec.education.entity;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import com.baomidou.mybatisplus.annotation.TableName;
  6. import com.baomidou.mybatisplus.extension.activerecord.Model;
  7. import java.io.Serializable;
  8. import java.util.Date;
  9. /**
  10. * <p>
  11. * 班级关系表(定义合奏课的班级信息)
  12. * </p>
  13. *
  14. * @author lemeng
  15. * @since 2019-09-25
  16. */
  17. @TableName("class_group_relation")
  18. public class ClassGroupRelation extends Model<ClassGroupRelation> {
  19. private static final long serialVersionUID = 1L;
  20. @TableId(value = "id_", type = IdType.AUTO)
  21. private Integer id;
  22. /**
  23. * 班级id
  24. */
  25. @TableField("class_group_id_")
  26. private Integer classGroupId;
  27. /**
  28. * 子班id
  29. */
  30. @TableField("sub_class_group_id_")
  31. private Integer subClassGroupId;
  32. @TableField("create_time_")
  33. private Date createTime;
  34. public Integer getId() {
  35. return id;
  36. }
  37. public ClassGroupRelation setId(Integer id) {
  38. this.id = id;
  39. return this;
  40. }
  41. public Integer getClassGroupId() {
  42. return classGroupId;
  43. }
  44. public ClassGroupRelation setClassGroupId(Integer classGroupId) {
  45. this.classGroupId = classGroupId;
  46. return this;
  47. }
  48. public Integer getSubClassGroupId() {
  49. return subClassGroupId;
  50. }
  51. public ClassGroupRelation setSubClassGroupId(Integer subClassGroupId) {
  52. this.subClassGroupId = subClassGroupId;
  53. return this;
  54. }
  55. public Date getCreateTime() {
  56. return createTime;
  57. }
  58. public ClassGroupRelation setCreateTime(Date createTime) {
  59. this.createTime = createTime;
  60. return this;
  61. }
  62. @Override
  63. protected Serializable pkVal() {
  64. return this.id;
  65. }
  66. @Override
  67. public String toString() {
  68. return "ClassGroupRelation{" +
  69. ", id=" + id +
  70. ", classGroupId=" + classGroupId +
  71. ", subClassGroupId=" + subClassGroupId +
  72. ", createTime=" + createTime +
  73. "}";
  74. }
  75. }