Selaa lähdekoodia

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

zzy.zhiyuan.foxmail 8 vuotta sitten
vanhempi
commit
bba257bb26
1 muutettua tiedostoa jossa 12 lisäystä ja 1 poistoa
  1. 12 1
      src/main/java/com/ekexiu/portal/po/User.java

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

@ -7,16 +7,19 @@ import org.jfw.apt.orm.annotation.entry.Unique;
7 7
import org.jfw.apt.orm.annotation.entry.Uniques;
8 8
import org.jfw.apt.orm.core.enums.DE;
9 9
10
import com.ekexiu.portal.basepo.CreateTimeSupported;
11
10 12
@PrimaryKey("id")
11 13
@Uniques({ @Unique(clolumns = "email", name = "USER_EMAIL_UQ"),
12 14
		@Unique(clolumns = "mobilePhone", name = "USER_MOBILEPHONE_UQ") })
13 15
@Table(value="LUSER")
14
public class User {
16
public class User implements CreateTimeSupported {
15 17
	private String id;
16 18
	private String email;
17 19
	private String mobilePhone;
18 20
	private String passwd;
19 21
	private String userType;
22
	private String createTime;
20 23
21 24
22 25
	@Column(DE.id_32)
@ -63,4 +66,12 @@ public class User {
63 66
	public void setUserType(String userType) {
64 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
}