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