BEntity.java
1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package com.bsth.entity.schedule;
import com.bsth.entity.sys.SysUser;
import javax.persistence.*;
import java.util.Date;
/**
* Created by xu on 16/12/14.
*/
@MappedSuperclass
public class BEntity {
/** 创建人 */
@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.REFRESH)
private SysUser createBy;
/** 修改人 */
@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.REFRESH)
private SysUser updateBy;
/** 创建日期 */
@Column(updatable = false, name = "create_date")
private Date createDate;
/** 修改日期 */
@Column(name = "update_date")
private Date updateDate;
public SysUser getCreateBy() {
return createBy;
}
public void setCreateBy(SysUser createBy) {
this.createBy = createBy;
}
public SysUser getUpdateBy() {
return updateBy;
}
public void setUpdateBy(SysUser updateBy) {
this.updateBy = updateBy;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Date getUpdateDate() {
return updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
}