-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Serializable should be implemented at the top level
- Loading branch information
1 parent
f5b3e3a
commit 04247e5
Showing
6 changed files
with
27 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 3 additions & 50 deletions
53
spring-cloud-biz/src/main/java/spring/cloud/biz/dataaccess/dataobject/MomentDo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,18 @@ | ||
package spring.cloud.biz.dataaccess.dataobject; | ||
|
||
import java.util.Date; | ||
import spring.cloud.client.model.MomentModel; | ||
|
||
public class MomentDo { | ||
private Long id; | ||
public class MomentDo extends MomentModel { | ||
|
||
private String userId; | ||
|
||
private String content; | ||
|
||
private Date gmtCreated; | ||
|
||
private Date gmtModified; | ||
private static final long serialVersionUID = 1404709910095824920L; | ||
|
||
private Boolean isDeleted; | ||
|
||
public Long getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
|
||
public String getUserId() { | ||
return userId; | ||
} | ||
|
||
public void setUserId(String userId) { | ||
this.userId = userId == null ? null : userId.trim(); | ||
} | ||
|
||
public Date getGmtCreated() { | ||
return gmtCreated; | ||
} | ||
|
||
public void setGmtCreated(Date gmtCreated) { | ||
this.gmtCreated = gmtCreated; | ||
} | ||
|
||
public Date getGmtModified() { | ||
return gmtModified; | ||
} | ||
|
||
public void setGmtModified(Date gmtModified) { | ||
this.gmtModified = gmtModified; | ||
} | ||
|
||
public Boolean getIsDeleted() { | ||
return isDeleted; | ||
} | ||
|
||
public void setIsDeleted(Boolean isDeleted) { | ||
this.isDeleted = isDeleted; | ||
} | ||
|
||
public String getContent() { | ||
return content; | ||
} | ||
|
||
public void setContent(String content) { | ||
this.content = content == null ? null : content.trim(); | ||
} | ||
} |
7 changes: 6 additions & 1 deletion
7
spring-cloud-client/src/main/java/spring/cloud/client/model/AccountModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
spring-cloud-client/src/main/java/spring/cloud/client/model/CommentModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
spring-cloud-client/src/main/java/spring/cloud/client/model/MomentModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters