|
|
@@ -91,79 +91,6 @@ public class AccActivity extends BaseEntity {
|
|
|
*/
|
|
|
private Date updatedAt;
|
|
|
|
|
|
- @Override
|
|
|
- public boolean equals(Object that) {
|
|
|
- if (this == that) {
|
|
|
- return true;
|
|
|
- }
|
|
|
- if (that == null) {
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (getClass() != that.getClass()) {
|
|
|
- return false;
|
|
|
- }
|
|
|
- AccActivity other = (AccActivity) 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.getCoverUrl() == null ? other.getCoverUrl() == null : this.getCoverUrl().equals(other.getCoverUrl()))
|
|
|
- && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
|
|
|
- && (this.getRegistrationStartTime() == null ? other.getRegistrationStartTime() == null : this.getRegistrationStartTime().equals(other.getRegistrationStartTime()))
|
|
|
- && (this.getRegistrationEndTime() == null ? other.getRegistrationEndTime() == null : this.getRegistrationEndTime().equals(other.getRegistrationEndTime()))
|
|
|
- && (this.getActivityStartTime() == null ? other.getActivityStartTime() == null : this.getActivityStartTime().equals(other.getActivityStartTime()))
|
|
|
- && (this.getActivityEndTime() == null ? other.getActivityEndTime() == null : this.getActivityEndTime().equals(other.getActivityEndTime()))
|
|
|
- && (this.getLocation() == null ? other.getLocation() == null : this.getLocation().equals(other.getLocation()))
|
|
|
- && (this.getRules() == null ? other.getRules() == null : this.getRules().equals(other.getRules()))
|
|
|
- && (this.getAwards() == null ? other.getAwards() == null : this.getAwards().equals(other.getAwards()))
|
|
|
- && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
|
|
|
- && (this.getCreatedBy() == null ? other.getCreatedBy() == null : this.getCreatedBy().equals(other.getCreatedBy()))
|
|
|
- && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
|
|
|
- && (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()));
|
|
|
- }
|
|
|
-
|
|
|
- @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 + ((getCoverUrl() == null) ? 0 : getCoverUrl().hashCode());
|
|
|
- result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
|
|
|
- result = prime * result + ((getRegistrationStartTime() == null) ? 0 : getRegistrationStartTime().hashCode());
|
|
|
- result = prime * result + ((getRegistrationEndTime() == null) ? 0 : getRegistrationEndTime().hashCode());
|
|
|
- result = prime * result + ((getActivityStartTime() == null) ? 0 : getActivityStartTime().hashCode());
|
|
|
- result = prime * result + ((getActivityEndTime() == null) ? 0 : getActivityEndTime().hashCode());
|
|
|
- result = prime * result + ((getLocation() == null) ? 0 : getLocation().hashCode());
|
|
|
- result = prime * result + ((getRules() == null) ? 0 : getRules().hashCode());
|
|
|
- result = prime * result + ((getAwards() == null) ? 0 : getAwards().hashCode());
|
|
|
- result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
|
|
|
- result = prime * result + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode());
|
|
|
- result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
|
|
|
- result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().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(", coverUrl=").append(coverUrl);
|
|
|
- sb.append(", description=").append(description);
|
|
|
- sb.append(", registrationStartTime=").append(registrationStartTime);
|
|
|
- sb.append(", registrationEndTime=").append(registrationEndTime);
|
|
|
- sb.append(", activityStartTime=").append(activityStartTime);
|
|
|
- sb.append(", activityEndTime=").append(activityEndTime);
|
|
|
- sb.append(", location=").append(location);
|
|
|
- sb.append(", rules=").append(rules);
|
|
|
- sb.append(", awards=").append(awards);
|
|
|
- sb.append(", status=").append(status);
|
|
|
- sb.append(", createdBy=").append(createdBy);
|
|
|
- sb.append(", createdAt=").append(createdAt);
|
|
|
- sb.append(", updatedAt=").append(updatedAt);
|
|
|
- sb.append("]");
|
|
|
- return sb.toString();
|
|
|
- }
|
|
|
+ // 是否展示
|
|
|
+ private Boolean isShow;
|
|
|
}
|