Commit c7938e0c by Joel Florentin

se aumento el tamano de la poblacion de postulantes inicial. correcion de…

se aumento el tamano de la poblacion de postulantes inicial. correcion de tipodocumento enum length. script inicial para instituciones
parent f44403cf
......@@ -33,7 +33,7 @@ public class CurriculumsearchApplication {
@Bean
CommandLineRunner runner(PostulanteRepository postRepo, TecnologiaRepository tecRepo, DepartamentoRepository depR,
CiudadRepository ciudR, RRHHUserRepository rrhhUserRepository, CargoRepository cargoR, ConvocatoriaRepository convR) {
CiudadRepository ciudR, RRHHUserRepository rrhhUserRepository, CargoRepository cargoR, ConvocatoriaRepository convR, InstitucionRepository insR) {
return args -> {
try {
// read json and write to db
......@@ -42,6 +42,7 @@ public class CurriculumsearchApplication {
guardarJson(depR,"/json/Departamento.json",Departamento.class);
guardarJson(ciudR,"/json/Ciudad.json",Ciudad.class);
guardarJson(tecRepo,"/json/tecnologia.json",Tecnologia.class);
guardarJson(insR,"/json/institucion.json",Institucion.class);
guardarJson(postRepo,"/json/postulante.json",Postulante.class);
String password = new BCryptPasswordEncoder().encode("test");
......
......@@ -21,7 +21,7 @@ public class Estudio {
private TipoDeEstudio tipoDeEstudio;
@NotNull(message = "Este campo no puede estar vacio")
@ManyToOne(cascade = CascadeType.PERSIST, fetch = FetchType.EAGER)
@ManyToOne(fetch = FetchType.EAGER)
@JsonBackReference
private Institucion institucion;
......
......@@ -86,7 +86,7 @@ public class Postulante {
@NotNull
private Nacionalidad nacionalidad;
@Column(name = "tipo_documento",length = 3)
@Column(name = "tipo_documento",length = 4)
@NotNull
private TipoDocumento tipoDocumento;
......
[
{
"nombre" : "UNA"
},
{
"nombre" : "UCA"
},
{
"nombre" : "AMERICANA"
},
{
"nombre" : "UCOM"
}
]
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -38,7 +38,7 @@
</div>
<div class="card-footer d-flex flex-column">
<div class="mt-2 align-self-end">
<input type="submit" value='${tecnologia.id == null ? "Agregar" : "Modificar"}' class="btn btn-primary" />
<input type="submit" value='Guardar' class="btn btn-primary" />
</div>
</div>
</form:form>
......
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