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 static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

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

	private Integer id;
	private Date data;
	private String longData;
	private String descrizione;

	public Calendario() {
	}

	public Calendario(Date data, String longData, String descrizione) {
		this.data = data;
		this.longData = longData;
		this.descrizione = descrizione;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "Data", length = 23)
	public Date getData() {
		return this.data;
	}

	public void setData(Date data) {
		this.data = data;
	}

	@Column(name = "LongData", length = 30)
	public String getLongData() {
		return this.longData;
	}

	public void setLongData(String longData) {
		this.longData = longData;
	}

	@Column(name = "Descrizione", length = 30)
	public String getDescrizione() {
		return this.descrizione;
	}

	public void setDescrizione(String descrizione) {
		this.descrizione = descrizione;
	}

}
