EstudioReconocimiento.java 1.4 KB
Newer Older
1 2
package com.roshka.modelo;

3 4 5 6 7 8
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;

import javax.persistence.Id;
9 10
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
11 12 13 14
import javax.persistence.Table;

@Entity
@Table(name="estudio_reconocimiento")
15
public class EstudioReconocimiento {
16
    @Id
17
    @GeneratedValue(strategy=GenerationType.AUTO)
18 19 20 21 22
    private Long id;
    @Column(name="nombre")
    private String nombre;
    @Column(name="certificado")
    private String certificado;
23 24 25 26 27 28 29
    @ManyToOne
    @JoinColumn
    private Postulante postulante;
    
    public Postulante getPostulante() {
		return postulante;
	}
30

31 32 33 34 35
	public void setPostulante(Postulante postulante) {
		this.postulante = postulante;
	}

	public EstudioReconocimiento(Long id, String nombre, String certificado) {
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
        this.id = id;
        this.nombre = nombre;
        this.certificado = certificado;
    }

    public Long getId() {
        return this.id;
    }

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

    public String getNombre() {
        return this.nombre;
    }

    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    public String getCertificado() {
        return this.certificado;
    }

    public void setCertificado(String certificado) {
        this.certificado = certificado;
    }
64
}