package es.uv.saic.domain;

import java.util.Date;

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="wiki")
@NamedQuery(name="Wiki.findAll", query="SELECT i FROM Wiki i")
public class Wiki {
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name="id_wiki")
	private Integer idWiki;
	private Date data;
	@Column(name="data_mod")
	private Date dataMod;
	private String text;
	private String categoria;
	
	public Wiki() {}
	
	public Integer getIdWiki() {
		return idWiki;
	}
	public void setIdWiki(Integer idWiki) {
		this.idWiki = idWiki;
	}
	public Date getData() {
		return data;
	}
	public void setData(Date data) {
		this.data = data;
	}
	public Date getDataMod() {
		return dataMod;
	}
	public void setDataMod(Date dataMod) {
		this.dataMod = dataMod;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getCategoria() {
		return categoria;
	}
	public void setCategoria(String categoria) {
		this.categoria = categoria;
	}
	
	
	
}
