Guaradado provisorio de postulante

parent f4fb9b53
......@@ -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,7 +34,11 @@ public class PostulanteController {
@PostMapping(value = "/postulante",consumes = "application/json")
public String guardarPostulante(@RequestBody Postulante postulante){
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