|
|
|
@ -1,8 +1,14 @@
|
|
|
|
|
package com.luoo.user.pojo;
|
|
|
|
|
|
|
|
|
|
import javax.persistence.Entity;
|
|
|
|
|
import javax.persistence.EntityListeners;
|
|
|
|
|
import javax.persistence.Id;
|
|
|
|
|
import javax.persistence.Table;
|
|
|
|
|
|
|
|
|
|
import org.springframework.data.annotation.CreatedDate;
|
|
|
|
|
import org.springframework.data.annotation.LastModifiedDate;
|
|
|
|
|
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
/**
|
|
|
|
|
* 实体类
|
|
|
|
@ -11,13 +17,12 @@ import java.io.Serializable;
|
|
|
|
|
*/
|
|
|
|
|
@Entity
|
|
|
|
|
@Table(name="tb_user")
|
|
|
|
|
@EntityListeners(AuditingEntityListener.class)
|
|
|
|
|
public class User implements Serializable{
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
@Id
|
|
|
|
|
private String id;//ID
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String mobile;//手机号码
|
|
|
|
|
private String loginname;//用户名
|
|
|
|
|
private String password;//密码
|
|
|
|
@ -26,7 +31,9 @@ public class User implements Serializable{
|
|
|
|
|
private java.util.Date birthday;//出生年月日
|
|
|
|
|
private String avatar;//头像
|
|
|
|
|
private String email;//E-Mail
|
|
|
|
|
@CreatedDate
|
|
|
|
|
private java.util.Date regdate;//注册日期
|
|
|
|
|
@LastModifiedDate
|
|
|
|
|
private java.util.Date updatedate;//修改日期
|
|
|
|
|
private java.util.Date lastdate;//最后登陆日期
|
|
|
|
|
private Long online;//在线时长(分钟)
|
|
|
|
|