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="links")
@NamedQuery(name="Link.findAll", query="SELECT i FROM Link i")
public class Link {
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name="id")
	private Integer id;

	@Column(name="ruct")
	private Integer ruct;

	@Column(name="token")
	private String token;
	
    @Column(name="link")
	private String link;

    @Column(name="data")
	private Date data;
	
    @Column(name="data_exp")
	private Date dataExp;
	
    @Column(name="visites")
	private Integer visites;

    public Link(){}

    public Integer getId() {
        return id;
    }

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

    public Integer getRuct() {
        return ruct;
    }

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

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public Date getData() {
        return data;
    }

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

    public Date getDataExp() {
        return dataExp;
    }

    public void setDataExp(Date dataExp) {
        this.dataExp = dataExp;
    }

    public Integer getVisites() {
        return visites;
    }

    public void setVisites(Integer visites) {
        this.visites = visites;
    }
	
}
