|
@@ -0,0 +1,91 @@
|
|
|
+package com.zhentao.system.domain;
|
|
|
+
|
|
|
+import lombok.Data;
|
|
|
+
|
|
|
+import java.io.Serializable;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @TableName course_category
|
|
|
+ */
|
|
|
+
|
|
|
+@Data
|
|
|
+public class CourseCategory implements Serializable {
|
|
|
+ private Integer categoryId;
|
|
|
+
|
|
|
+ private String categoryName;
|
|
|
+
|
|
|
+ private String categoryDescription;
|
|
|
+
|
|
|
+ public Integer getCategoryId() {
|
|
|
+ return categoryId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCategoryId(Integer categoryId) {
|
|
|
+ this.categoryId = categoryId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getCategoryName() {
|
|
|
+ return categoryName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCategoryName(String categoryName) {
|
|
|
+ this.categoryName = categoryName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getCategoryDescription() {
|
|
|
+ return categoryDescription;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCategoryDescription(String categoryDescription) {
|
|
|
+ this.categoryDescription = categoryDescription;
|
|
|
+ }
|
|
|
+
|
|
|
+ public CourseCategory(Integer categoryId, String categoryName, String categoryDescription) {
|
|
|
+ this.categoryId = categoryId;
|
|
|
+ this.categoryName = categoryName;
|
|
|
+ this.categoryDescription = categoryDescription;
|
|
|
+ }
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean equals(Object that) {
|
|
|
+ if (this == that) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (that == null) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (getClass() != that.getClass()) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ CourseCategory other = (CourseCategory) that;
|
|
|
+ return (this.getCategoryId() == null ? other.getCategoryId() == null : this.getCategoryId().equals(other.getCategoryId()))
|
|
|
+ && (this.getCategoryName() == null ? other.getCategoryName() == null : this.getCategoryName().equals(other.getCategoryName()))
|
|
|
+ && (this.getCategoryDescription() == null ? other.getCategoryDescription() == null : this.getCategoryDescription().equals(other.getCategoryDescription()));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int hashCode() {
|
|
|
+ final int prime = 31;
|
|
|
+ int result = 1;
|
|
|
+ result = prime * result + ((getCategoryId() == null) ? 0 : getCategoryId().hashCode());
|
|
|
+ result = prime * result + ((getCategoryName() == null) ? 0 : getCategoryName().hashCode());
|
|
|
+ result = prime * result + ((getCategoryDescription() == null) ? 0 : getCategoryDescription().hashCode());
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+ sb.append(getClass().getSimpleName());
|
|
|
+ sb.append(" [");
|
|
|
+ sb.append("Hash = ").append(hashCode());
|
|
|
+ sb.append(", categoryId=").append(categoryId);
|
|
|
+ sb.append(", categoryName=").append(categoryName);
|
|
|
+ sb.append(", categoryDescription=").append(categoryDescription);
|
|
|
+ sb.append(", serialVersionUID=").append(serialVersionUID);
|
|
|
+ sb.append("]");
|
|
|
+ return sb.toString();
|
|
|
+ }
|
|
|
+}
|