package com.glacier.frame.entity.system;
import java.util.Date;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import com.alibaba.fastjson.annotation.JSONField;
public class LoginLog {
private String loginlogId;
private String userId;
private String loginUser;
@JSONField(format="yyyy-MM-dd HH:mm:ss")
@Temporal(TemporalType.TIMESTAMP)
private Date loginTime;
private String loginIp;
private String browserVersion;
private String screenSize;
public String getLoginlogId() {
return loginlogId;
}
public void setLoginlogId(String loginlogId) {
this.loginlogId = loginlogId;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getLoginUser() {
return loginUser;
}
public void setLoginUser(String loginUser) {
this.loginUser = loginUser;
}
public Date getLoginTime() {
return loginTime;
}
public void setLoginTime(Date loginTime) {
this.loginTime = loginTime;
}
public String getLoginIp() {
return loginIp;
}
public void setLoginIp(String loginIp) {
this.loginIp = loginIp;
}
public String getBrowserVersion() {
return browserVersion;
}
public void setBrowserVersion(String browserVersion) {
this.browserVersion = browserVersion;
}
public String getScreenSize() {
return screenSize;
}
public void setScreenSize(String screenSize) {
this.screenSize = screenSize;
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
LoginLog other = (LoginLog) that;
return (this.getLoginlogId() == null ? other.getLoginlogId() == null : this.getLoginlogId().equals(other.getLoginlogId()))
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
&& (this.getLoginUser() == null ? other.getLoginUser() == null : this.getLoginUser().equals(other.getLoginUser()))
&& (this.getLoginTime() == null ? other.getLoginTime() == null : this.getLoginTime().equals(other.getLoginTime()))
&& (this.getLoginIp() == null ? other.getLoginIp() == null : this.getLoginIp().equals(other.getLoginIp()))
&& (this.getBrowserVersion() == null ? other.getBrowserVersion() == null : this.getBrowserVersion().equals(other.getBrowserVersion()))
&& (this.getScreenSize() == null ? other.getScreenSize() == null : this.getScreenSize().equals(other.getScreenSize()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getLoginlogId() == null) ? 0 : getLoginlogId().hashCode());
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
result = prime * result + ((getLoginUser() == null) ? 0 : getLoginUser().hashCode());
result = prime * result + ((getLoginTime() == null) ? 0 : getLoginTime().hashCode());
result = prime * result + ((getLoginIp() == null) ? 0 : getLoginIp().hashCode());
result = prime * result + ((getBrowserVersion() == null) ? 0 : getBrowserVersion().hashCode());
result = prime * result + ((getScreenSize() == null) ? 0 : getScreenSize().hashCode());
return result;
}
}