|
|
|
@ -1,15 +1,16 @@ |
|
|
|
|
package com.share.help.entity; |
|
|
|
|
|
|
|
|
|
import java.sql.Timestamp; |
|
|
|
|
import java.util.Objects; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class LeaveWordEntity { |
|
|
|
|
private Long leaveWordId; |
|
|
|
|
private String type; |
|
|
|
|
private String sourceUserId; |
|
|
|
|
private String targetUserId; |
|
|
|
|
private Long activityId; |
|
|
|
|
private Timestamp createTime; |
|
|
|
|
private UserEntity userBySourceUserId; |
|
|
|
|
private UserEntity userByTargetUserId; |
|
|
|
|
private ActivityEntity activityByActivityId; |
|
|
|
@ -64,6 +65,14 @@ public class LeaveWordEntity { |
|
|
|
|
this.activityId = activityId; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Timestamp getCreateTime() { |
|
|
|
|
return createTime; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setCreateTime(Timestamp createTime) { |
|
|
|
|
this.createTime = createTime; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean equals(Object o) { |
|
|
|
|
if (this == o) return true; |
|
|
|
@ -73,16 +82,18 @@ public class LeaveWordEntity { |
|
|
|
|
Objects.equals(type, that.type) && |
|
|
|
|
Objects.equals(sourceUserId, that.sourceUserId) && |
|
|
|
|
Objects.equals(targetUserId, that.targetUserId) && |
|
|
|
|
Objects.equals(activityId, that.activityId); |
|
|
|
|
Objects.equals(activityId, that.activityId) && |
|
|
|
|
Objects.equals(createTime, that.createTime) && |
|
|
|
|
Objects.equals(userBySourceUserId, that.userBySourceUserId) && |
|
|
|
|
Objects.equals(userByTargetUserId, that.userByTargetUserId) && |
|
|
|
|
Objects.equals(activityByActivityId, that.activityByActivityId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public int hashCode() { |
|
|
|
|
return Objects.hash(leaveWordId, type, sourceUserId, targetUserId, activityId); |
|
|
|
|
return Objects.hash(leaveWordId, type, sourceUserId, targetUserId, activityId, createTime, userBySourceUserId, userByTargetUserId, activityByActivityId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public UserEntity getUserBySourceUserId() { |
|
|
|
|
return userBySourceUserId; |
|
|
|
|
} |
|
|
|
|