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;

@Entity
@Table(name="plantilles")
@NamedQuery(name="Plantilla.findAll", query="SELECT t FROM Plantilla t")
public class Plantilla {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name="id_plantilla")
	private Integer idPlantilla;
	
	@Column(name="versio")
	private Integer versio;
	
	@Column(name="codi")
	private String codi;
	
	@Column(name="nom_cas")
	private String nomCas;
	
	@Column(name="nom_val")
	private String nomVal;
	
	@Column(name="data_creacio")
	private Timestamp data_creacio;
	
	@Column(name="data_mod")
	private Timestamp data_mod;
	
	@Column(name="text")
	private String text;
	
	@Column(name="ambit")
	private String ambit;

	public Integer getIdPlantilla() {
		return idPlantilla;
	}

	public void setIdPlantilla(Integer idPlantilla) {
		this.idPlantilla = idPlantilla;
	}

	public Integer getVersio() {
		return versio;
	}

	public void setVersio(Integer versio) {
		this.versio = versio;
	}

	public String getCodi() {
		return codi;
	}

	public void setCodi(String codi) {
		this.codi = codi;
	}

	public String getNomCas() {
		return nomCas;
	}

	public void setNomCas(String nomCas) {
		this.nomCas = nomCas;
	}

	public String getNomVal() {
		return nomVal;
	}

	public void setNomVal(String nomVal) {
		this.nomVal = nomVal;
	}

	public Timestamp getData_creacio() {
		return data_creacio;
	}

	public void setData_creacio(Timestamp data_creacio) {
		this.data_creacio = data_creacio;
	}

	public Timestamp getData_mod() {
		return data_mod;
	}

	public void setData_mod(Timestamp data_mod) {
		this.data_mod = data_mod;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getAmbit() {
		return ambit;
	}

	public void setAmbit(String ambit) {
		this.ambit = ambit;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
}
