com.base4j.mvc.sys.entity.SysAccount Maven / Gradle / Ivy
package com.base4j.mvc.sys.entity;
import com.base4j.mvc.base.entity.IPrepare;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Table(name = "SEED_SYS_ACCOUNT")
public class SysAccount implements IPrepare {
private static final long serialVersionUID = 6022588492678547207L;
@Id
private Long id;
private Long sysOrgId;
private Long sysUserId;
private String username;
private String password;
private String email;
private boolean enable; //账号是否可用
private boolean nonLocked; //账号是否锁定
private Date credentialsExpiredTime; //密码过期时间
private Date accountExpiredTime; //账号过期时间
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getSysOrgId() {
return sysOrgId;
}
public void setSysOrgId(Long sysOrgId) {
this.sysOrgId = sysOrgId;
}
public Long getSysUserId() {
return sysUserId;
}
public void setSysUserId(Long sysUserId) {
this.sysUserId = sysUserId;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public boolean isEnable() {
return enable;
}
public void setEnable(boolean enable) {
this.enable = enable;
}
public boolean isNonLocked() {
return nonLocked;
}
public void setNonLocked(boolean nonLocked) {
this.nonLocked = nonLocked;
}
public Date getCredentialsExpiredTime() {
return credentialsExpiredTime;
}
public void setCredentialsExpiredTime(Date credentialsExpiredTime) {
this.credentialsExpiredTime = credentialsExpiredTime;
}
public Date getAccountExpiredTime() {
return accountExpiredTime;
}
public void setAccountExpiredTime(Date accountExpiredTime) {
this.accountExpiredTime = accountExpiredTime;
}
}