PostulanteTecnologia.java 1.21 KB
Newer Older
1 2
package com.roshka.modelo;

willgonzz committed
3
import javax.persistence.CascadeType;
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;
Javier Ferreira committed
9 10
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
11 12 13 14
import javax.persistence.Table;
@Entity 
@Table(name="postulante_tecnologia")

15
public class PostulanteTecnologia {
16 17
   @Id 
   @GeneratedValue(strategy = GenerationType.AUTO)
18
   @Column(name="id")
19 20 21
   private long id ;
   @Column(name="nivel")
   private Long nivel;
willgonzz committed
22
    @ManyToOne(cascade = CascadeType.PERSIST)
Javier Ferreira committed
23 24 25 26 27
    @JoinColumn
   private Tecnologia tecnologia;
   @ManyToOne()
   @JoinColumn
   private Postulante postulante;
28 29 30 31 32 33 34 35 36 37 38 39
public long getId() {
    return id;
}
public void setId(long id) {
    this.id = id;
}
public Long getNivel() {
    return nivel;
}
public void setNivel(Long nivel) {
    this.nivel = nivel;
}
Javier Ferreira committed
40 41
public Tecnologia getTecnologia() {
    return tecnologia;
42
}
Javier Ferreira committed
43 44
public void setTecnologia(Tecnologia tecnologia) {
    this.tecnologia = tecnologia;
45
}
Javier Ferreira committed
46
public Postulante getPostulante() {
47 48
    return postulante;
}
Javier Ferreira committed
49
public void setPostulante(Postulante postulante) {
50 51 52 53 54 55 56 57
    this.postulante = postulante;
}






Javier Ferreira committed
58 59


60
}