Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
BackEnd-V2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joel Andres Molina Velez
BackEnd-V2
Commits
cf8ab808
Commit
cf8ab808
authored
Jul 16, 2023
by
Joel Andres Molina Velez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Se realiza una modificación para el el mapper de UzyTavProgObjMapper
parent
4c84e490
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
UzyTavProgObjMapper.java
...ilidadWS/Mapper/Components_Class/UzyTavProgObjMapper.java
+8
-3
No files found.
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Mapper/Components_Class/UzyTavProgObjMapper.java
View file @
cf8ab808
...
...
@@ -39,17 +39,22 @@ public class UzyTavProgObjMapper {
}
public
ModelUzyTavProgObj
dtoToEntity
(
DtoUzyTavProgObj
dto
)
{
ModelUzyTavProgObj
entity
=
modelMapper
.
map
(
dto
,
ModelUzyTavProgObj
.
class
);
Long
buenvivirID
=
dto
.
getUzytavobjetivo_b_vivir_id
();
Long
programaID
=
dto
.
getUzytavprograma_v_id
();
Long
proyectID
=
dto
.
getUzytavproyec_id
();
if
(
buenvivirID
!=
null
){
ModelUzyTavObjetivoBVivir
buenvivir
=
entityManager
.
find
(
ModelUzyTavObjetivoBVivir
.
class
,
buenvivirID
);
ModelUzyTavPrograma_V
programaV
=
entityManager
.
find
(
ModelUzyTavPrograma_V
.
class
,
programaID
);
ModelUzyTavProyec
proyec
=
entityManager
.
find
(
ModelUzyTavProyec
.
class
,
proyectID
);
entity
.
setUzytavobjetivo_b_vivir
(
buenvivir
);
}
if
(
programaID
!=
null
){
ModelUzyTavPrograma_V
programaV
=
entityManager
.
find
(
ModelUzyTavPrograma_V
.
class
,
programaID
);
entity
.
setUzytavprograma_v
(
programaV
);
}
if
(
proyectID
!=
null
){
ModelUzyTavProyec
proyec
=
entityManager
.
find
(
ModelUzyTavProyec
.
class
,
proyectID
);
entity
.
setUzytavproyec
(
proyec
);
}
return
entity
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment