Se modifica el UzyTavEvalProyMapper

parent 7a8cfecb
......@@ -32,10 +32,15 @@ public class UzyTavEvalProyMapper {
ModelUzyTavEvalProy entity = modelMapper.map(dto, ModelUzyTavEvalProy.class);
Long cabevalpID = dto.getUzytavcabevalp_id();
Long valorparID = dto.getUzytavaloruzytparametros_id();
ModelUzyTavCabeValp cabeval = entityManager.find(ModelUzyTavCabeValp.class, cabevalpID);
ModelUzyTaValorPar valorPar = entityManager.find(ModelUzyTaValorPar.class, valorparID);
entity.setUzytavcabevalp(cabeval);
entity.setUzytavalorpar(valorPar);
if(cabevalpID !=null){
ModelUzyTavCabeValp cabeval = entityManager.find(ModelUzyTavCabeValp.class, cabevalpID);
entity.setUzytavcabevalp(cabeval);
}
if(valorparID !=null){
ModelUzyTaValorPar valorPar = entityManager.find(ModelUzyTaValorPar.class, valorparID);
entity.setUzytavalorpar(valorPar);
}
return entity;
}
......
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