From 31f35de71e95252e4b89dc6648d4910e2d8b8c86 Mon Sep 17 00:00:00 2001 From: Joel Date: Fri, 29 Oct 2021 08:32:04 -0300 Subject: [PATCH] modelo con atributos experiencia tecnologia --- curriculumsearch/src/main/java/com/roshka/modelo/ExperienciaTecnologia.java | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/curriculumsearch/src/main/java/com/roshka/modelo/ExperienciaTecnologia.java b/curriculumsearch/src/main/java/com/roshka/modelo/ExperienciaTecnologia.java index 7e84d43..2747d58 100644 --- a/curriculumsearch/src/main/java/com/roshka/modelo/ExperienciaTecnologia.java +++ b/curriculumsearch/src/main/java/com/roshka/modelo/ExperienciaTecnologia.java @@ -1,5 +1,61 @@ package com.roshka.modelo; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; +import javax.persistence.Id; +import javax.persistence.JoinColumn; +import javax.persistence.ManyToOne; +import javax.persistence.Table; + +@Entity +@Table(name = "experiencia_tecnologia") public class ExperienciaTecnologia { + @Id + @GeneratedValue(strategy = GenerationType.AUTO) + private Long id; + + @ManyToOne + @JoinColumn + private Experiencia experencia; + + @ManyToOne + @JoinColumn + private Tecnologia tecnologia; + + private Long nivel; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Experiencia getExperencia() { + return experencia; + } + + public void setExperencia(Experiencia experencia) { + this.experencia = experencia; + } + + public Tecnologia getTecnologia() { + return tecnologia; + } + + public void setTecnologia(Tecnologia tecnologia) { + this.tecnologia = tecnologia; + } + + public Long getNivel() { + return nivel; + } + + public void setNivel(Long nivel) { + this.nivel = nivel; + } + } -- libgit2 0.26.0