|
@@ -2,9 +2,6 @@ package com.uas.platform.b2c.common.account.model;
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.annotation.JSONField;
|
|
import com.alibaba.fastjson.annotation.JSONField;
|
|
|
import com.uas.platform.core.model.Constant;
|
|
import com.uas.platform.core.model.Constant;
|
|
|
-
|
|
|
|
|
-import java.util.*;
|
|
|
|
|
-
|
|
|
|
|
import org.codehaus.jackson.annotate.JsonIgnore;
|
|
import org.codehaus.jackson.annotate.JsonIgnore;
|
|
|
import org.hibernate.annotations.Cache;
|
|
import org.hibernate.annotations.Cache;
|
|
|
import org.hibernate.annotations.CacheConcurrencyStrategy;
|
|
import org.hibernate.annotations.CacheConcurrencyStrategy;
|
|
@@ -12,9 +9,23 @@ import org.hibernate.annotations.NotFound;
|
|
|
import org.hibernate.annotations.NotFoundAction;
|
|
import org.hibernate.annotations.NotFoundAction;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
|
|
-import javax.persistence.*;
|
|
|
|
|
-import javax.validation.constraints.NotNull;
|
|
|
|
|
-import java.io.Serializable;
|
|
|
|
|
|
|
+import javax.persistence.Cacheable;
|
|
|
|
|
+import javax.persistence.CascadeType;
|
|
|
|
|
+import javax.persistence.Column;
|
|
|
|
|
+import javax.persistence.Entity;
|
|
|
|
|
+import javax.persistence.FetchType;
|
|
|
|
|
+import javax.persistence.Id;
|
|
|
|
|
+import javax.persistence.JoinColumn;
|
|
|
|
|
+import javax.persistence.JoinTable;
|
|
|
|
|
+import javax.persistence.ManyToMany;
|
|
|
|
|
+import javax.persistence.OneToMany;
|
|
|
|
|
+import javax.persistence.OrderBy;
|
|
|
|
|
+import javax.persistence.Table;
|
|
|
|
|
+import javax.persistence.Transient;
|
|
|
|
|
+import java.io.*;
|
|
|
|
|
+import java.util.Date;
|
|
|
|
|
+import java.util.HashSet;
|
|
|
|
|
+import java.util.Set;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 用户信息
|
|
* 用户信息
|
|
@@ -27,6 +38,16 @@ import java.io.Serializable;
|
|
|
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "com.uas.platform.b2c.common.account.model.User")
|
|
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "com.uas.platform.b2c.common.account.model.User")
|
|
|
public class User implements Serializable {
|
|
public class User implements Serializable {
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 姓名长度限制
|
|
|
|
|
+ */
|
|
|
|
|
+ public static final Integer MAX_NAME_LENGTH = 20;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 邮箱长度限制
|
|
|
|
|
+ */
|
|
|
|
|
+ public static final Integer MAX_EMAIL_LENGTH = 50;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
*/
|
|
*/
|