Commit 295a7cf0 by Joel Florentin

Merge branch 'giuli_001' of https://phoebe.roshka.com/gitlab/hshah/TalentoHumano into joel-001

parents c057b0e2 37797605
......@@ -5,6 +5,7 @@ import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import com.roshka.modelo.Experiencia;
import com.roshka.modelo.Postulante;
import com.roshka.repositorio.PostulanteRepository;
......@@ -33,8 +34,11 @@ public class PostulanteController {
@PostMapping(value = "/postulante",consumes = "application/json")
public String guardarPostulante(@RequestBody Postulante postulante){
System.out.println(postulante.getExperiencias().get(0).getCargo());
post.save(postulante);
for(Experiencia exp: postulante.getExperiencias()){
exp.setPostulante(postulante);
}
post.save(postulante);
return "redirect:/";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment