Browse Source

用户表增加创建时间字段。

zzy.zhiyuan.foxmail 8 years ago
parent
commit
bba257bb26
1 changed files with 12 additions and 1 deletions
  1. 12 1
      src/main/java/com/ekexiu/portal/po/User.java

+ 12 - 1
src/main/java/com/ekexiu/portal/po/User.java

7
import org.jfw.apt.orm.annotation.entry.Uniques;
7
import org.jfw.apt.orm.annotation.entry.Uniques;
8
import org.jfw.apt.orm.core.enums.DE;
8
import org.jfw.apt.orm.core.enums.DE;
9
9
10
import com.ekexiu.portal.basepo.CreateTimeSupported;
11
10
@PrimaryKey("id")
12
@PrimaryKey("id")
11
@Uniques({ @Unique(clolumns = "email", name = "USER_EMAIL_UQ"),
13
@Uniques({ @Unique(clolumns = "email", name = "USER_EMAIL_UQ"),
12
		@Unique(clolumns = "mobilePhone", name = "USER_MOBILEPHONE_UQ") })
14
		@Unique(clolumns = "mobilePhone", name = "USER_MOBILEPHONE_UQ") })
13
@Table(value="LUSER")
15
@Table(value="LUSER")
14
public class User {
16
public class User implements CreateTimeSupported {
15
	private String id;
17
	private String id;
16
	private String email;
18
	private String email;
17
	private String mobilePhone;
19
	private String mobilePhone;
18
	private String passwd;
20
	private String passwd;
19
	private String userType;
21
	private String userType;
22
	private String createTime;
20
23
21
24
22
	@Column(DE.id_32)
25
	@Column(DE.id_32)
63
	public void setUserType(String userType) {
66
	public void setUserType(String userType) {
64
		this.userType = userType;
67
		this.userType = userType;
65
	}
68
	}
69
70
	public String getCreateTime() {
71
		return createTime;
72
	}
73
74
	public void setCreateTime(String createTime) {
75
		this.createTime = createTime;
76
	}
66
}
77
}