package es.uv.saic.domain;

import java.sql.Timestamp;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.NamedQuery;
import jakarta.persistence.Table;
import jakarta.persistence.Temporal;
import jakarta.persistence.TemporalType;

@Entity
@Table(name="indicador_enquesta_tmp")
@NamedQuery(name="IndicadorEnquestaTmp.findAll", query="SELECT n FROM IndicadorEnquestaTmp n")
public class IndicadorEnquestaTmp {
 
	@Id 
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name="id", updatable = false, nullable = false)
	private Integer id;
	private String valor;
	private String num;
	private Integer titulacio;
	private Integer centre;
	private Integer curs;
	private String enquesta;
	private String indicador;
	private String ambit;
	private String tipus;
	private String estudi;
	private String cursd;
	private String usuari;
	private String cursEnquesta;
	private String centreOrigen;
	private String titulacioOrigen;
	private Integer nenq;
	private Integer ruct;
	
	@Temporal(TemporalType.TIMESTAMP)
	private Timestamp data; 
	
	public IndicadorEnquestaTmp(){}
	
	public Integer getId() {
		return id;
	}
	
	public void setId(Integer id) {
		this.id = id;
	}
	
	public Integer getTitulacio() {
		return titulacio;
	}

	public void setTitulacio(Integer titulacio) {
		this.titulacio = titulacio;
	}
	
	public Integer getCentre() {
		return centre;
	}

	public void setCentre(Integer centre) {
		this.centre = centre;
	}

	public Integer getCurs() {
		return curs;
	}

	public void setCurs(Integer curs) {
		this.curs = curs;
	}

	public String getEnquesta() {
		return enquesta;
	}

	public void setEnquesta(String enquesta) {
		this.enquesta = enquesta;
	}

	public String getIndicador() {
		return indicador;
	}

	public void setIndicador(String indicador) {
		this.indicador = indicador;
	}
	
	public String getValor() {
		return valor;
	}
	
	public void setValor(String valor) {
		this.valor = valor;
	}
	
	public String getNum() {
		return num;
	}
	
	public void setNum(String num) {
		this.num = num;
	}
	
	public String getAmbit() {
		return ambit;
	}
	
	public void setAmbit(String ambit) {
		this.ambit = ambit;
	}
	
	public String getTipus() {
		return tipus;
	}
	
	public void setTipus(String tipus) {
		this.tipus = tipus;
	}
	
	public String getEstudi() {
		return estudi;
	}
	
	public void setEstudi(String estudi) {
		this.estudi = estudi;
	}
	
	public String getCursd() {
		return cursd;
	}
	
	public void setCursd(String cursd) {
		this.cursd = cursd;
	}
	
	public String getUsuari() {
		return usuari;
	}

	public void setUsuari(String usuari) {
		this.usuari = usuari;
	}

	public Timestamp getData() {
		return data;
	}

	public void setData(Timestamp data) {
		this.data = data;
	}
	
	public String getCursEnquesta() {
		return cursEnquesta;
	}

	public void setCursEnquesta(String cursEnquesta) {
		this.cursEnquesta = cursEnquesta;
	}

	public String getCentreOrigen() {
		return centreOrigen;
	}

	public void setCentreOrigen(String centreOrigen) {
		this.centreOrigen = centreOrigen;
	}

	public String getTitulacioOrigen() {
		return titulacioOrigen;
	}

	public void setTitulacioOrigen(String titulacioOrigen) {
		this.titulacioOrigen = titulacioOrigen;
	}

	public Integer getNenq() {
		return nenq;
	}

	public void setNenq(Integer nenq) {
		this.nenq = nenq;
	}

	public Integer getRuct() {
		return ruct;
	}

	public void setRuct(Integer ruct) {
		this.ruct = ruct;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof IndicadorEnquestaTmp)) {
			return false;
		}
		IndicadorEnquestaTmp castOther = (IndicadorEnquestaTmp)other;
		return 
			this.id.equals(castOther.id) &&
			this.valor.equals(castOther.valor) &&
			this.num.equals(castOther.num) &&
			this.centre.equals(castOther.centre) &&
			this.titulacio.equals(castOther.titulacio) &&
			this.curs.equals(castOther.curs) &&
			this.ambit.equals(castOther.ambit) &&
			this.enquesta.equals(castOther.enquesta) &&
			this.indicador.equals(castOther.indicador) &&
			this.cursd.equals(castOther.cursd) &&
			this.usuari.equals(castOther.usuari) &&
			this.data.toString().equals(castOther.data.toString()) &&
			this.cursEnquesta.equals(castOther.cursEnquesta) &&
			this.titulacioOrigen.equals(castOther.titulacioOrigen) &&
			this.centreOrigen.equals(castOther.centreOrigen) &&
			this.nenq.equals(castOther.nenq) &&
			this.ruct.equals(castOther.ruct);
	}

	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.id.hashCode();
		hash = hash * prime + this.valor.hashCode();
		hash = hash * prime + this.centre.hashCode();
		hash = hash * prime + this.titulacio.hashCode();
		hash = hash * prime + this.curs.hashCode();
		hash = hash * prime + this.ambit.hashCode();
		hash = hash * prime + this.enquesta.hashCode();
		hash = hash * prime + this.indicador.hashCode();
		hash = hash * prime + this.usuari.hashCode();
		hash = hash * prime + this.data.toString().hashCode();
		hash = hash * prime + this.cursEnquesta.hashCode();
		hash = hash * prime + this.titulacioOrigen.hashCode();
		hash = hash * prime + this.centreOrigen.hashCode();
		hash = hash * prime + this.nenq.hashCode();
		hash = hash * prime + this.ruct.hashCode();
		
		return hash;
	}	
}
