|
@@ -91,84 +91,10 @@ public class Course implements Serializable {
|
|
|
* 更新时间
|
|
|
*/
|
|
|
private Date updateTime;
|
|
|
-
|
|
|
+ /**
|
|
|
+ * shop_id
|
|
|
+ */
|
|
|
+ private Long shopId;
|
|
|
@TableField(exist = false)
|
|
|
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;
|
|
|
- }
|
|
|
- Course other = (Course) that;
|
|
|
- return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
|
|
- && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
|
|
|
- && (this.getSubtitle() == null ? other.getSubtitle() == null : this.getSubtitle().equals(other.getSubtitle()))
|
|
|
- && (this.getCoverImage() == null ? other.getCoverImage() == null : this.getCoverImage().equals(other.getCoverImage()))
|
|
|
- && (this.getCategoryId() == null ? other.getCategoryId() == null : this.getCategoryId().equals(other.getCategoryId()))
|
|
|
- && (this.getTeacherId() == null ? other.getTeacherId() == null : this.getTeacherId().equals(other.getTeacherId()))
|
|
|
- && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
|
|
|
- && (this.getOriginalPrice() == null ? other.getOriginalPrice() == null : this.getOriginalPrice().equals(other.getOriginalPrice()))
|
|
|
- && (this.getDuration() == null ? other.getDuration() == null : this.getDuration().equals(other.getDuration()))
|
|
|
- && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
|
|
|
- && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
|
|
|
- && (this.getLearnGoals() == null ? other.getLearnGoals() == null : this.getLearnGoals().equals(other.getLearnGoals()))
|
|
|
- && (this.getRequirements() == null ? other.getRequirements() == null : this.getRequirements().equals(other.getRequirements()))
|
|
|
- && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
|
|
- && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public int hashCode() {
|
|
|
- final int prime = 31;
|
|
|
- int result = 1;
|
|
|
- result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
|
|
- result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
|
|
|
- result = prime * result + ((getSubtitle() == null) ? 0 : getSubtitle().hashCode());
|
|
|
- result = prime * result + ((getCoverImage() == null) ? 0 : getCoverImage().hashCode());
|
|
|
- result = prime * result + ((getCategoryId() == null) ? 0 : getCategoryId().hashCode());
|
|
|
- result = prime * result + ((getTeacherId() == null) ? 0 : getTeacherId().hashCode());
|
|
|
- result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
|
|
|
- result = prime * result + ((getOriginalPrice() == null) ? 0 : getOriginalPrice().hashCode());
|
|
|
- result = prime * result + ((getDuration() == null) ? 0 : getDuration().hashCode());
|
|
|
- result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
|
|
|
- result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
|
|
|
- result = prime * result + ((getLearnGoals() == null) ? 0 : getLearnGoals().hashCode());
|
|
|
- result = prime * result + ((getRequirements() == null) ? 0 : getRequirements().hashCode());
|
|
|
- result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
|
|
- result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public String toString() {
|
|
|
- StringBuilder sb = new StringBuilder();
|
|
|
- sb.append(getClass().getSimpleName());
|
|
|
- sb.append(" [");
|
|
|
- sb.append("Hash = ").append(hashCode());
|
|
|
- sb.append(", id=").append(id);
|
|
|
- sb.append(", title=").append(title);
|
|
|
- sb.append(", subtitle=").append(subtitle);
|
|
|
- sb.append(", coverImage=").append(coverImage);
|
|
|
- sb.append(", categoryId=").append(categoryId);
|
|
|
- sb.append(", teacherId=").append(teacherId);
|
|
|
- sb.append(", price=").append(price);
|
|
|
- sb.append(", originalPrice=").append(originalPrice);
|
|
|
- sb.append(", duration=").append(duration);
|
|
|
- sb.append(", status=").append(status);
|
|
|
- sb.append(", description=").append(description);
|
|
|
- sb.append(", learnGoals=").append(learnGoals);
|
|
|
- sb.append(", requirements=").append(requirements);
|
|
|
- sb.append(", createTime=").append(createTime);
|
|
|
- sb.append(", updateTime=").append(updateTime);
|
|
|
- sb.append(", serialVersionUID=").append(serialVersionUID);
|
|
|
- sb.append("]");
|
|
|
- return sb.toString();
|
|
|
- }
|
|
|
}
|