package com.syzton.sunread.dto.note; import org.hibernate.validator.constraints.Length; import org.hibernate.validator.constraints.NotEmpty; import com.syzton.sunread.model.note.Note; /** * @author chenty * */ public class NoteDTO { private Long id; @NotEmpty @Length(max = Note.MAX_LENGTH_TITLE) private String title; @NotEmpty @Length(max = Note.MAX_LENGTH_CONTENT) private String content; @Length(max = Note.MAX_LENGTH_IMAGE) private String image; private Long commentCount; private int contentLength; public int getContentLength() { return contentLength; } public void setContentLength(int contentLength) { this.contentLength = contentLength; } public Long getCommentCount() { return commentCount; } public void setCommentCount(Long commentCount) { this.commentCount = commentCount; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } public String getImage() { return image; } public void setImage(String image) { this.image = image; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } }