@Length to @Size
This commit is contained in:
@@ -8,7 +8,7 @@ import java.util.Date;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.jeesite.common.entity.BaseEntity;
|
||||
@@ -115,7 +115,7 @@ public class Article extends DataEntity<Article> {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 50, message = "模块类型长度不能超过 50 个字符")
|
||||
@Size(min = 0, max = 50, message = "模块类型长度不能超过 50 个字符")
|
||||
public String getModuleType() {
|
||||
return moduleType;
|
||||
}
|
||||
@@ -125,7 +125,7 @@ public class Article extends DataEntity<Article> {
|
||||
}
|
||||
|
||||
@NotBlank(message = "内容标题不能为空")
|
||||
@Length(min = 0, max = 255, message = "内容标题长度不能超过 255 个字符")
|
||||
@Size(min = 0, max = 255, message = "内容标题长度不能超过 255 个字符")
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
@@ -134,7 +134,7 @@ public class Article extends DataEntity<Article> {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 1000, message = "外部链接长度不能超过 1000 个字符")
|
||||
@Size(min = 0, max = 1000, message = "外部链接长度不能超过 1000 个字符")
|
||||
public String getHref() {
|
||||
return href;
|
||||
}
|
||||
@@ -143,7 +143,7 @@ public class Article extends DataEntity<Article> {
|
||||
this.href = href;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 50, message = "标题颜色长度不能超过 50 个字符")
|
||||
@Size(min = 0, max = 50, message = "标题颜色长度不能超过 50 个字符")
|
||||
public String getColor() {
|
||||
return color;
|
||||
}
|
||||
@@ -152,7 +152,7 @@ public class Article extends DataEntity<Article> {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 1000, message = "内容图片长度不能超过 1000 个字符")
|
||||
@Size(min = 0, max = 1000, message = "内容图片长度不能超过 1000 个字符")
|
||||
public String getImage() {
|
||||
return image;
|
||||
}
|
||||
@@ -161,7 +161,7 @@ public class Article extends DataEntity<Article> {
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 500, message = "关键字长度不能超过 500 个字符")
|
||||
@Size(min = 0, max = 500, message = "关键字长度不能超过 500 个字符")
|
||||
public String getKeywords() {
|
||||
return keywords;
|
||||
}
|
||||
@@ -170,7 +170,7 @@ public class Article extends DataEntity<Article> {
|
||||
this.keywords = keywords;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 500, message = "描述长度不能超过 500 个字符")
|
||||
@Size(min = 0, max = 500, message = "描述长度不能超过 500 个字符")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
@@ -196,7 +196,7 @@ public class Article extends DataEntity<Article> {
|
||||
this.weightDate = weightDate;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 1, message = "来源长度不能超过 1 个字符")
|
||||
@Size(min = 0, max = 1, message = "来源长度不能超过 1 个字符")
|
||||
public String getSource() {
|
||||
return source;
|
||||
}
|
||||
@@ -205,7 +205,7 @@ public class Article extends DataEntity<Article> {
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 255, message = "文章来源出处长度不能超过 255 个字符")
|
||||
@Size(min = 0, max = 255, message = "文章来源出处长度不能超过 255 个字符")
|
||||
public String getCopyfrom() {
|
||||
return copyfrom;
|
||||
}
|
||||
@@ -248,7 +248,7 @@ public class Article extends DataEntity<Article> {
|
||||
this.wordCount = wordCount;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 255, message = "自定义内容视图长度不能超过 255 个字符")
|
||||
@Size(min = 0, max = 255, message = "自定义内容视图长度不能超过 255 个字符")
|
||||
public String getCustomContentView() {
|
||||
return customContentView;
|
||||
}
|
||||
@@ -257,7 +257,7 @@ public class Article extends DataEntity<Article> {
|
||||
this.customContentView = customContentView;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 1000, message = "视图配置长度不能超过 1000 个字符")
|
||||
@Size(min = 0, max = 1000, message = "视图配置长度不能超过 1000 个字符")
|
||||
public String getViewConfig() {
|
||||
return viewConfig;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
package com.jeesite.modules.cms.entity;
|
||||
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
import com.jeesite.common.entity.DataEntity;
|
||||
import com.jeesite.common.entity.Extend;
|
||||
@@ -47,7 +47,7 @@ public class ArticleData extends DataEntity<ArticleData> {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 1000, message = "相关文章长度不能超过 1000 个字符")
|
||||
@Size(min = 0, max = 1000, message = "相关文章长度不能超过 1000 个字符")
|
||||
public String getRelation() {
|
||||
return relation;
|
||||
}
|
||||
@@ -56,7 +56,7 @@ public class ArticleData extends DataEntity<ArticleData> {
|
||||
this.relation = relation;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 1, message = "是否允许评论长度不能超过 1 个字符")
|
||||
@Size(min = 0, max = 1, message = "是否允许评论长度不能超过 1 个字符")
|
||||
public String getIsCanComment() {
|
||||
return isCanComment;
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import java.util.List;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
import com.jeesite.common.collect.ListUtils;
|
||||
import com.jeesite.common.entity.DataEntity;
|
||||
@@ -110,7 +110,7 @@ public class Category extends TreeEntity<Category> {
|
||||
}
|
||||
|
||||
@NotBlank(message = "栏目名称不能为空")
|
||||
@Length(min = 0, max = 100, message = "栏目名称长度不能超过 100 个字符")
|
||||
@Size(min = 0, max = 100, message = "栏目名称长度不能超过 100 个字符")
|
||||
public String getCategoryName() {
|
||||
return categoryName;
|
||||
}
|
||||
@@ -130,7 +130,7 @@ public class Category extends TreeEntity<Category> {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 50, message = "模块类型长度不能超过 50 个字符")
|
||||
@Size(min = 0, max = 50, message = "模块类型长度不能超过 50 个字符")
|
||||
public String getModuleType() {
|
||||
return moduleType;
|
||||
}
|
||||
@@ -139,7 +139,7 @@ public class Category extends TreeEntity<Category> {
|
||||
this.moduleType = moduleType;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 255, message = "栏目图片长度不能超过 255 个字符")
|
||||
@Size(min = 0, max = 255, message = "栏目图片长度不能超过 255 个字符")
|
||||
public String getImage() {
|
||||
return image;
|
||||
}
|
||||
@@ -148,7 +148,7 @@ public class Category extends TreeEntity<Category> {
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 255, message = "链接长度不能超过 255 个字符")
|
||||
@Size(min = 0, max = 255, message = "链接长度不能超过 255 个字符")
|
||||
public String getHref() {
|
||||
return href;
|
||||
}
|
||||
@@ -157,7 +157,7 @@ public class Category extends TreeEntity<Category> {
|
||||
this.href = href;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 20, message = "目标长度不能超过 20 个字符")
|
||||
@Size(min = 0, max = 20, message = "目标长度不能超过 20 个字符")
|
||||
public String getTarget() {
|
||||
return target;
|
||||
}
|
||||
@@ -166,7 +166,7 @@ public class Category extends TreeEntity<Category> {
|
||||
this.target = target;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 500, message = "关键字长度不能超过 500 个字符")
|
||||
@Size(min = 0, max = 500, message = "关键字长度不能超过 500 个字符")
|
||||
public String getKeywords() {
|
||||
return keywords;
|
||||
}
|
||||
@@ -175,7 +175,7 @@ public class Category extends TreeEntity<Category> {
|
||||
this.keywords = keywords;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 500, message = "描述长度不能超过 500 个字符")
|
||||
@Size(min = 0, max = 500, message = "描述长度不能超过 500 个字符")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
@@ -184,7 +184,7 @@ public class Category extends TreeEntity<Category> {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 1, message = "是否在导航中显示长度不能超过 1 个字符")
|
||||
@Size(min = 0, max = 1, message = "是否在导航中显示长度不能超过 1 个字符")
|
||||
public String getInMenu() {
|
||||
return inMenu;
|
||||
}
|
||||
@@ -193,7 +193,7 @@ public class Category extends TreeEntity<Category> {
|
||||
this.inMenu = inMenu;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 1, message = "是否在分类页中显示列表长度不能超过 1 个字符")
|
||||
@Size(min = 0, max = 1, message = "是否在分类页中显示列表长度不能超过 1 个字符")
|
||||
public String getInList() {
|
||||
return inList;
|
||||
}
|
||||
@@ -202,7 +202,7 @@ public class Category extends TreeEntity<Category> {
|
||||
this.inList = inList;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 1, message = "展现模式长度不能超过 1 个字符")
|
||||
@Size(min = 0, max = 1, message = "展现模式长度不能超过 1 个字符")
|
||||
public String getShowModes() {
|
||||
return showModes;
|
||||
}
|
||||
@@ -211,7 +211,7 @@ public class Category extends TreeEntity<Category> {
|
||||
this.showModes = showModes;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 1, message = "是否需要审核长度不能超过 1 个字符")
|
||||
@Size(min = 0, max = 1, message = "是否需要审核长度不能超过 1 个字符")
|
||||
public String getIsNeedAudit() {
|
||||
return isNeedAudit;
|
||||
}
|
||||
@@ -220,7 +220,7 @@ public class Category extends TreeEntity<Category> {
|
||||
this.isNeedAudit = isNeedAudit;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 1, message = "是否允许评论长度不能超过 1 个字符")
|
||||
@Size(min = 0, max = 1, message = "是否允许评论长度不能超过 1 个字符")
|
||||
public String getIsCanComment() {
|
||||
return isCanComment;
|
||||
}
|
||||
@@ -229,7 +229,7 @@ public class Category extends TreeEntity<Category> {
|
||||
this.isCanComment = isCanComment;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 255, message = "自定义列表视图长度不能超过 255 个字符")
|
||||
@Size(min = 0, max = 255, message = "自定义列表视图长度不能超过 255 个字符")
|
||||
public String getCustomListView() {
|
||||
return customListView;
|
||||
}
|
||||
@@ -238,7 +238,7 @@ public class Category extends TreeEntity<Category> {
|
||||
this.customListView = customListView;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 255, message = "自定义内容视图长度不能超过 255 个字符")
|
||||
@Size(min = 0, max = 255, message = "自定义内容视图长度不能超过 255 个字符")
|
||||
public String getCustomContentView() {
|
||||
return customContentView;
|
||||
}
|
||||
@@ -247,7 +247,7 @@ public class Category extends TreeEntity<Category> {
|
||||
this.customContentView = customContentView;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 1000, message = "视图配置长度不能超过 1000 个字符")
|
||||
@Size(min = 0, max = 1000, message = "视图配置长度不能超过 1000 个字符")
|
||||
public String getViewConfig() {
|
||||
return viewConfig;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
package com.jeesite.modules.cms.entity;
|
||||
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
import com.jeesite.common.entity.DataEntity;
|
||||
import com.jeesite.common.mybatis.annotation.Column;
|
||||
@@ -52,7 +52,7 @@ public class CategoryRole extends DataEntity<CategoryRole> {
|
||||
this.roleCode = roleCode;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 32, message = "控制类型长度不能超过 32 个字符")
|
||||
@Size(min = 0, max = 32, message = "控制类型长度不能超过 32 个字符")
|
||||
public String getCtrlType() {
|
||||
return ctrlType;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.util.Date;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.jeesite.common.entity.BaseEntity;
|
||||
@@ -77,7 +77,7 @@ public class Comment extends DataEntity<Comment> {
|
||||
}
|
||||
|
||||
@NotBlank(message="栏目编码不能为空")
|
||||
@Length(min=0, max=64, message="栏目编码长度不能超过 64 个字符")
|
||||
@Size(min=0, max=64, message="栏目编码长度不能超过 64 个字符")
|
||||
public String getCategoryCode() {
|
||||
return categoryCode;
|
||||
}
|
||||
@@ -87,7 +87,7 @@ public class Comment extends DataEntity<Comment> {
|
||||
}
|
||||
|
||||
@NotBlank(message="内容编号不能为空")
|
||||
@Length(min=0, max=64, message="内容编号长度不能超过 64 个字符")
|
||||
@Size(min=0, max=64, message="内容编号长度不能超过 64 个字符")
|
||||
public String getArticleId() {
|
||||
return articleId;
|
||||
}
|
||||
@@ -96,7 +96,7 @@ public class Comment extends DataEntity<Comment> {
|
||||
this.articleId = articleId;
|
||||
}
|
||||
|
||||
@Length(min=0, max=64, message="父级评论长度不能超过 64 个字符")
|
||||
@Size(min=0, max=64, message="父级评论长度不能超过 64 个字符")
|
||||
public String getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
@@ -106,7 +106,7 @@ public class Comment extends DataEntity<Comment> {
|
||||
}
|
||||
|
||||
@NotBlank(message="内容标题不能为空")
|
||||
@Length(min=0, max=255, message="内容标题长度不能超过 255 个字符")
|
||||
@Size(min=0, max=255, message="内容标题长度不能超过 255 个字符")
|
||||
public String getArticleTitle() {
|
||||
return articleTitle;
|
||||
}
|
||||
@@ -116,7 +116,7 @@ public class Comment extends DataEntity<Comment> {
|
||||
}
|
||||
|
||||
@NotBlank(message="评论内容不能为空")
|
||||
@Length(min=0, max=255, message="评论内容长度不能超过 255 个字符")
|
||||
@Size(min=0, max=255, message="评论内容长度不能超过 255 个字符")
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
@@ -125,7 +125,7 @@ public class Comment extends DataEntity<Comment> {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
@Length(min=0, max=50, message="评论姓名长度不能超过 50 个字符")
|
||||
@Size(min=0, max=50, message="评论姓名长度不能超过 50 个字符")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -134,7 +134,7 @@ public class Comment extends DataEntity<Comment> {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Length(min=0, max=100, message="评论IP长度不能超过 100 个字符")
|
||||
@Size(min=0, max=100, message="评论IP长度不能超过 100 个字符")
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
@@ -143,7 +143,7 @@ public class Comment extends DataEntity<Comment> {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
@Length(min=0, max=64, message="审核人长度不能超过 64 个字符")
|
||||
@Size(min=0, max=64, message="审核人长度不能超过 64 个字符")
|
||||
public String getAuditUserCode() {
|
||||
return auditUserCode;
|
||||
}
|
||||
@@ -161,7 +161,7 @@ public class Comment extends DataEntity<Comment> {
|
||||
this.auditDate = auditDate;
|
||||
}
|
||||
|
||||
@Length(min=0, max=200, message="审核意见长度不能超过 200 个字符")
|
||||
@Size(min=0, max=200, message="审核意见长度不能超过 200 个字符")
|
||||
public String getAuditComment() {
|
||||
return auditComment;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
package com.jeesite.modules.cms.entity;
|
||||
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
import com.jeesite.common.entity.DataEntity;
|
||||
import com.jeesite.common.mybatis.annotation.Column;
|
||||
@@ -40,7 +40,7 @@ public class Report extends DataEntity<Report> {
|
||||
super(id);
|
||||
}
|
||||
|
||||
@Length(min=0, max=1, message="举报来源长度不能超过 1 个字符")
|
||||
@Size(min=0, max=1, message="举报来源长度不能超过 1 个字符")
|
||||
public String getReportSource() {
|
||||
return reportSource;
|
||||
}
|
||||
@@ -49,7 +49,7 @@ public class Report extends DataEntity<Report> {
|
||||
this.reportSource = reportSource;
|
||||
}
|
||||
|
||||
@Length(min=0, max=500, message="举报内容长度不能超过 500 个字符")
|
||||
@Size(min=0, max=500, message="举报内容长度不能超过 500 个字符")
|
||||
public String getReportContent() {
|
||||
return reportContent;
|
||||
}
|
||||
@@ -58,7 +58,7 @@ public class Report extends DataEntity<Report> {
|
||||
this.reportContent = reportContent;
|
||||
}
|
||||
|
||||
@Length(min=0, max=1000, message="举报的URL长度不能超过 1000 个字符")
|
||||
@Size(min=0, max=1000, message="举报的URL长度不能超过 1000 个字符")
|
||||
public String getReportUrl() {
|
||||
return reportUrl;
|
||||
}
|
||||
@@ -67,7 +67,7 @@ public class Report extends DataEntity<Report> {
|
||||
this.reportUrl = reportUrl;
|
||||
}
|
||||
|
||||
@Length(min=0, max=1, message="举报类型长度不能超过 1 个字符")
|
||||
@Size(min=0, max=1, message="举报类型长度不能超过 1 个字符")
|
||||
public String getReportType() {
|
||||
return reportType;
|
||||
}
|
||||
@@ -76,7 +76,7 @@ public class Report extends DataEntity<Report> {
|
||||
this.reportType = reportType;
|
||||
}
|
||||
|
||||
@Length(min=0, max=500, message="举报原因长度不能超过 500 个字符")
|
||||
@Size(min=0, max=500, message="举报原因长度不能超过 500 个字符")
|
||||
public String getReportCause() {
|
||||
return reportCause;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ package com.jeesite.modules.cms.entity;
|
||||
import java.util.List;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
import com.jeesite.common.config.Global;
|
||||
import com.jeesite.common.entity.DataEntity;
|
||||
@@ -85,7 +85,7 @@ public class Site extends DataEntity<Site> {
|
||||
}
|
||||
|
||||
@NotBlank(message = "站点名称不能为空")
|
||||
@Length(min = 0, max = 100, message = "站点名称长度不能超过 100 个字符")
|
||||
@Size(min = 0, max = 100, message = "站点名称长度不能超过 100 个字符")
|
||||
public String getSiteName() {
|
||||
return siteName;
|
||||
}
|
||||
@@ -103,7 +103,7 @@ public class Site extends DataEntity<Site> {
|
||||
}
|
||||
|
||||
@NotBlank(message = "站点标题不能为空")
|
||||
@Length(min = 0, max = 100, message = "站点标题长度不能超过 100 个字符")
|
||||
@Size(min = 0, max = 100, message = "站点标题长度不能超过 100 个字符")
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
@@ -112,7 +112,7 @@ public class Site extends DataEntity<Site> {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 1000, message = "站点Logo长度不能超过 1000 个字符")
|
||||
@Size(min = 0, max = 1000, message = "站点Logo长度不能超过 1000 个字符")
|
||||
public String getLogo() {
|
||||
return logo;
|
||||
}
|
||||
@@ -121,7 +121,7 @@ public class Site extends DataEntity<Site> {
|
||||
this.logo = logo;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 500, message = "站点域名长度不能超过 500 个字符")
|
||||
@Size(min = 0, max = 500, message = "站点域名长度不能超过 500 个字符")
|
||||
public String getDomain() {
|
||||
return domain;
|
||||
}
|
||||
@@ -130,7 +130,7 @@ public class Site extends DataEntity<Site> {
|
||||
this.domain = domain;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 500, message = "关键字长度不能超过 500 个字符")
|
||||
@Size(min = 0, max = 500, message = "关键字长度不能超过 500 个字符")
|
||||
public String getKeywords() {
|
||||
return keywords;
|
||||
}
|
||||
@@ -139,7 +139,7 @@ public class Site extends DataEntity<Site> {
|
||||
this.keywords = keywords;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 500, message = "描述长度不能超过 500 个字符")
|
||||
@Size(min = 0, max = 500, message = "描述长度不能超过 500 个字符")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
@@ -148,7 +148,7 @@ public class Site extends DataEntity<Site> {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 500, message = "主题长度不能超过 500 个字符")
|
||||
@Size(min = 0, max = 500, message = "主题长度不能超过 500 个字符")
|
||||
public String getTheme() {
|
||||
return theme;
|
||||
}
|
||||
@@ -157,7 +157,7 @@ public class Site extends DataEntity<Site> {
|
||||
this.theme = theme;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 1000, message = "版权信息长度不能超过 1000 个字符")
|
||||
@Size(min = 0, max = 1000, message = "版权信息长度不能超过 1000 个字符")
|
||||
public String getCopyright() {
|
||||
return copyright;
|
||||
}
|
||||
@@ -166,7 +166,7 @@ public class Site extends DataEntity<Site> {
|
||||
this.copyright = copyright;
|
||||
}
|
||||
|
||||
@Length(min = 0, max = 500, message = "自定义站点首页视图长度不能超过 500 个字符")
|
||||
@Size(min = 0, max = 500, message = "自定义站点首页视图长度不能超过 500 个字符")
|
||||
public String getCustomIndexView() {
|
||||
return customIndexView;
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ package com.jeesite.modules.cms.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.jeesite.common.entity.BaseEntity;
|
||||
@@ -96,7 +96,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
super(id);
|
||||
}
|
||||
|
||||
@Length(min=0, max=1000, message="请求的URL地址长度不能超过 1000 个字符")
|
||||
@Size(min=0, max=1000, message="请求的URL地址长度不能超过 1000 个字符")
|
||||
public String getRequestUrl() {
|
||||
return requestUrl;
|
||||
}
|
||||
@@ -105,7 +105,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.requestUrl = requestUrl;
|
||||
}
|
||||
|
||||
@Length(min=0, max=128, message="受访域名长度不能超过 128 个字符")
|
||||
@Size(min=0, max=128, message="受访域名长度不能超过 128 个字符")
|
||||
public String getRequestUrlHost() {
|
||||
return requestUrlHost;
|
||||
}
|
||||
@@ -114,7 +114,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.requestUrlHost = requestUrlHost;
|
||||
}
|
||||
|
||||
@Length(min=0, max=1000, message="来源页面/上一个页面长度不能超过 1000 个字符")
|
||||
@Size(min=0, max=1000, message="来源页面/上一个页面长度不能超过 1000 个字符")
|
||||
public String getSourceReferer() {
|
||||
return sourceReferer;
|
||||
}
|
||||
@@ -123,7 +123,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.sourceReferer = sourceReferer;
|
||||
}
|
||||
|
||||
@Length(min=0, max=128, message="来源域名长度不能超过 128 个字符")
|
||||
@Size(min=0, max=128, message="来源域名长度不能超过 128 个字符")
|
||||
public String getSourceRefererHost() {
|
||||
return sourceRefererHost;
|
||||
}
|
||||
@@ -132,7 +132,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.sourceRefererHost = sourceRefererHost;
|
||||
}
|
||||
|
||||
@Length(min=0, max=1, message="访问来源类型长度不能超过 1 个字符")
|
||||
@Size(min=0, max=1, message="访问来源类型长度不能超过 1 个字符")
|
||||
public String getSourceType() {
|
||||
return sourceType;
|
||||
}
|
||||
@@ -141,7 +141,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.sourceType = sourceType;
|
||||
}
|
||||
|
||||
@Length(min=0, max=200, message="使用的搜索引擎长度不能超过 200 个字符")
|
||||
@Size(min=0, max=200, message="使用的搜索引擎长度不能超过 200 个字符")
|
||||
public String getSearchEngine() {
|
||||
return searchEngine;
|
||||
}
|
||||
@@ -150,7 +150,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.searchEngine = searchEngine;
|
||||
}
|
||||
|
||||
@Length(min=0, max=200, message="搜索的关键词长度不能超过 200 个字符")
|
||||
@Size(min=0, max=200, message="搜索的关键词长度不能超过 200 个字符")
|
||||
public String getSearchWord() {
|
||||
return searchWord;
|
||||
}
|
||||
@@ -159,7 +159,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.searchWord = searchWord;
|
||||
}
|
||||
|
||||
@Length(min=0, max=50, message="客户IP地址长度不能超过 50 个字符")
|
||||
@Size(min=0, max=50, message="客户IP地址长度不能超过 50 个字符")
|
||||
public String getRemoteAddr() {
|
||||
return remoteAddr;
|
||||
}
|
||||
@@ -168,7 +168,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.remoteAddr = remoteAddr;
|
||||
}
|
||||
|
||||
@Length(min=0, max=500, message="用户代理字符串长度不能超过 500 个字符")
|
||||
@Size(min=0, max=500, message="用户代理字符串长度不能超过 500 个字符")
|
||||
public String getUserAgent() {
|
||||
return userAgent;
|
||||
}
|
||||
@@ -177,7 +177,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.userAgent = userAgent;
|
||||
}
|
||||
|
||||
@Length(min=0, max=32, message="客户机语言长度不能超过 32 个字符")
|
||||
@Size(min=0, max=32, message="客户机语言长度不能超过 32 个字符")
|
||||
public String getUserLanguage() {
|
||||
return userLanguage;
|
||||
}
|
||||
@@ -186,7 +186,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.userLanguage = userLanguage;
|
||||
}
|
||||
|
||||
@Length(min=0, max=32, message="客户机屏幕大小0x0长度不能超过 32 个字符")
|
||||
@Size(min=0, max=32, message="客户机屏幕大小0x0长度不能超过 32 个字符")
|
||||
public String getUserScreenSize() {
|
||||
return userScreenSize;
|
||||
}
|
||||
@@ -195,7 +195,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.userScreenSize = userScreenSize;
|
||||
}
|
||||
|
||||
@Length(min=0, max=32, message="客户机设备类型长度不能超过 32 个字符")
|
||||
@Size(min=0, max=32, message="客户机设备类型长度不能超过 32 个字符")
|
||||
public String getUserDevice() {
|
||||
return userDevice;
|
||||
}
|
||||
@@ -204,7 +204,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.userDevice = userDevice;
|
||||
}
|
||||
|
||||
@Length(min=0, max=32, message="客户机操作系统长度不能超过 32 个字符")
|
||||
@Size(min=0, max=32, message="客户机操作系统长度不能超过 32 个字符")
|
||||
public String getUserOsName() {
|
||||
return userOsName;
|
||||
}
|
||||
@@ -213,7 +213,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.userOsName = userOsName;
|
||||
}
|
||||
|
||||
@Length(min=0, max=32, message="客户机浏览器长度不能超过 32 个字符")
|
||||
@Size(min=0, max=32, message="客户机浏览器长度不能超过 32 个字符")
|
||||
public String getUserBrowser() {
|
||||
return userBrowser;
|
||||
}
|
||||
@@ -222,7 +222,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.userBrowser = userBrowser;
|
||||
}
|
||||
|
||||
@Length(min=0, max=16, message="浏览器版本长度不能超过 16 个字符")
|
||||
@Size(min=0, max=16, message="浏览器版本长度不能超过 16 个字符")
|
||||
public String getUserBrowserVersion() {
|
||||
return userBrowserVersion;
|
||||
}
|
||||
@@ -231,7 +231,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.userBrowserVersion = userBrowserVersion;
|
||||
}
|
||||
|
||||
@Length(min=0, max=64, message="唯一访问标识长度不能超过 64 个字符")
|
||||
@Size(min=0, max=64, message="唯一访问标识长度不能超过 64 个字符")
|
||||
public String getUniqueVisitId() {
|
||||
return uniqueVisitId;
|
||||
}
|
||||
@@ -240,7 +240,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.uniqueVisitId = uniqueVisitId;
|
||||
}
|
||||
|
||||
@Length(min=0, max=8, message="本次访问日期长度不能超过 8 个字符")
|
||||
@Size(min=0, max=8, message="本次访问日期长度不能超过 8 个字符")
|
||||
public String getVisitDate() {
|
||||
return visitDate;
|
||||
}
|
||||
@@ -258,7 +258,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.visitTime = visitTime;
|
||||
}
|
||||
|
||||
@Length(min=0, max=1, message="是否新访问长度不能超过 1 个字符")
|
||||
@Size(min=0, max=1, message="是否新访问长度不能超过 1 个字符")
|
||||
public String getIsNewVisit() {
|
||||
return isNewVisit;
|
||||
}
|
||||
@@ -291,7 +291,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.totalRemainTime = totalRemainTime;
|
||||
}
|
||||
|
||||
@Length(min=0, max=64, message="站点编码长度不能超过 64 个字符")
|
||||
@Size(min=0, max=64, message="站点编码长度不能超过 64 个字符")
|
||||
public String getSiteCode() {
|
||||
return siteCode;
|
||||
}
|
||||
@@ -300,7 +300,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.siteCode = siteCode;
|
||||
}
|
||||
|
||||
@Length(min=0, max=100, message="站点名称长度不能超过 100 个字符")
|
||||
@Size(min=0, max=100, message="站点名称长度不能超过 100 个字符")
|
||||
public String getSiteName() {
|
||||
return siteName;
|
||||
}
|
||||
@@ -309,7 +309,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.siteName = siteName;
|
||||
}
|
||||
|
||||
@Length(min=0, max=64, message="栏目编码长度不能超过 64 个字符")
|
||||
@Size(min=0, max=64, message="栏目编码长度不能超过 64 个字符")
|
||||
public String getCategoryCode() {
|
||||
return categoryCode;
|
||||
}
|
||||
@@ -318,7 +318,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.categoryCode = categoryCode;
|
||||
}
|
||||
|
||||
@Length(min=0, max=100, message="栏目名称长度不能超过 100 个字符")
|
||||
@Size(min=0, max=100, message="栏目名称长度不能超过 100 个字符")
|
||||
public String getCategoryName() {
|
||||
return categoryName;
|
||||
}
|
||||
@@ -327,7 +327,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.categoryName = categoryName;
|
||||
}
|
||||
|
||||
@Length(min=0, max=64, message="栏目内容编号长度不能超过 64 个字符")
|
||||
@Size(min=0, max=64, message="栏目内容编号长度不能超过 64 个字符")
|
||||
public String getContentId() {
|
||||
return contentId;
|
||||
}
|
||||
@@ -336,7 +336,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.contentId = contentId;
|
||||
}
|
||||
|
||||
@Length(min=0, max=255, message="访问页面标题长度不能超过 255 个字符")
|
||||
@Size(min=0, max=255, message="访问页面标题长度不能超过 255 个字符")
|
||||
public String getContentTitle() {
|
||||
return contentTitle;
|
||||
}
|
||||
@@ -345,7 +345,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.contentTitle = contentTitle;
|
||||
}
|
||||
|
||||
@Length(min=0, max=100, message="访问用户编码长度不能超过 100 个字符")
|
||||
@Size(min=0, max=100, message="访问用户编码长度不能超过 100 个字符")
|
||||
public String getVisitUserCode() {
|
||||
return visitUserCode;
|
||||
}
|
||||
@@ -354,7 +354,7 @@ public class VisitLog extends DataEntity<VisitLog> {
|
||||
this.visitUserCode = visitUserCode;
|
||||
}
|
||||
|
||||
@Length(min=0, max=100, message="访问用户姓名长度不能超过 100 个字符")
|
||||
@Size(min=0, max=100, message="访问用户姓名长度不能超过 100 个字符")
|
||||
public String getVisitUserName() {
|
||||
return visitUserName;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user