From 328574adfcb42ea9f1cee55b5e3c7de7e6aaf127 Mon Sep 17 00:00:00 2001 From: Joel Date: Fri, 29 Oct 2021 11:24:14 -0300 Subject: [PATCH] postulante relaciones y app properties --- curriculumsearch/src/main/java/com/roshka/modelo/Postulante.java | 33 +++++++++++++++++++++++++++++++++ curriculumsearch/src/main/resources/application.properties | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/curriculumsearch/src/main/java/com/roshka/modelo/Postulante.java b/curriculumsearch/src/main/java/com/roshka/modelo/Postulante.java index a038445..f4bb4eb 100644 --- a/curriculumsearch/src/main/java/com/roshka/modelo/Postulante.java +++ b/curriculumsearch/src/main/java/com/roshka/modelo/Postulante.java @@ -2,6 +2,7 @@ package com.roshka.modelo; import javax.persistence.*; import java.util.Date; +import java.util.List; @Entity @@ -47,6 +48,18 @@ public class Postulante { @Column(name = "disponibilidad") private String disponibilidad; + @OneToMany(mappedBy = "postulante") + @JoinColumn() + private List tecnologias; + + @OneToMany(mappedBy = "postulante") + @JoinColumn() + private List experiencias; + + @OneToMany(mappedBy = "postulante") + @JoinColumn + private List estudios; + public long getId() { return id; } @@ -150,4 +163,24 @@ public class Postulante { public void setDisponibilidad(String disponibilidad) { this.disponibilidad = disponibilidad; } + + public List getTecnologias() { + return tecnologias; + } + public void setTecnologias(List tecnologias) { + this.tecnologias = tecnologias; + } + + public List getEstudios() { + return estudios; + } + public List getExperiencias() { + return experiencias; + } + public void setEstudios(List estudios) { + this.estudios = estudios; + } + public void setExperiencias(List experiencias) { + this.experiencias = experiencias; + } } diff --git a/curriculumsearch/src/main/resources/application.properties b/curriculumsearch/src/main/resources/application.properties index 9445262..9527447 100644 --- a/curriculumsearch/src/main/resources/application.properties +++ b/curriculumsearch/src/main/resources/application.properties @@ -9,7 +9,7 @@ spring.sql.init.platform=postgres #spring.datasource.password=postgres spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true -server.port=8888 +#server.port=8888 spring.mvc.view.prefix=/WEB-INF/views/ spring.mvc.view.suffix=.jsp -- libgit2 0.26.0