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

3 4 5 6 7
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
Javier Ferreira committed
8 9
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
10
import javax.persistence.Table;
11 12 13
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
14 15

import com.fasterxml.jackson.annotation.JsonBackReference;
16 17 18
@Entity 
@Table(name="postulante_tecnologia")

19
public class PostulanteTecnologia {
20 21
   @Id 
   @GeneratedValue(strategy = GenerationType.AUTO)
22
   @Column(name="id")
23
   private long id ;
24

25
   @Column(name="nivel")
26 27
   @Min(value = 1)
   @Max(value = 5)
28
   private Long nivel;
29

Javier Ferreira committed
30 31 32
    @ManyToOne()
    @JoinColumn
   private Tecnologia tecnologia;
33 34

    @ManyToOne()
Javier Ferreira committed
35
   @JoinColumn
36
   @JsonBackReference
37
    private Postulante postulante;
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
    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;
    }
    public Tecnologia getTecnologia() {
        return tecnologia;
    }
    public void setTecnologia(Tecnologia tecnologia) {
        this.tecnologia = tecnologia;
    }
    public Postulante getPostulante() {
        return postulante;
    }
    public void setPostulante(Postulante postulante) {
        this.postulante = postulante;
    }
62 63 64 65 66 67






Javier Ferreira committed
68 69


70
}