package sicura.entities;
// Generated 2-lug-2017 12.20.06 by Hibernate Tools 5.2.3.Final

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;

/**
 * SecurityLogin generated by hbm2java
 */
@Entity
@Table(name = "SecurityLogin", schema = "dbo")
public class SecurityLogin implements java.io.Serializable {

	private String guid;
	private String userId;
	private Date loginDate;
	private String hostName;
	private int hostId;
	private String hostIp;

	public SecurityLogin() {
	}

	public SecurityLogin(String userId, Date loginDate, String hostName, int hostId) {
		this.userId = userId;
		this.loginDate = loginDate;
		this.hostName = hostName;
		this.hostId = hostId;
	}

	public SecurityLogin(String userId, Date loginDate, String hostName, int hostId, String hostIp) {
		this.userId = userId;
		this.loginDate = loginDate;
		this.hostName = hostName;
		this.hostId = hostId;
		this.hostIp = hostIp;
	}

	@GenericGenerator(name = "generator", strategy = "guid")
	@Id
	@GeneratedValue(generator = "generator")

	@Column(name = "Guid", unique = true, nullable = false, length = 36)
	public String getGuid() {
		return this.guid;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}

	@Column(name = "UserID", nullable = false, length = 15)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LoginDate", nullable = false, length = 23)
	public Date getLoginDate() {
		return this.loginDate;
	}

	public void setLoginDate(Date loginDate) {
		this.loginDate = loginDate;
	}

	@Column(name = "HostName", nullable = false, length = 50)
	public String getHostName() {
		return this.hostName;
	}

	public void setHostName(String hostName) {
		this.hostName = hostName;
	}

	@Column(name = "HostId", nullable = false)
	public int getHostId() {
		return this.hostId;
	}

	public void setHostId(int hostId) {
		this.hostId = hostId;
	}

	@Column(name = "HostIp", length = 50)
	public String getHostIp() {
		return this.hostIp;
	}

	public void setHostIp(String hostIp) {
		this.hostIp = hostIp;
	}

}
