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
2f37fd30
Commit
2f37fd30
authored
Jul 24, 2023
by
Joel Andres Molina Velez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Se modifica el mapper de UzyTavPresupMapper
parent
74ddaa9a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
UzyTavPresupMapper.java
...vilidadWS/Mapper/Components_Class/UzyTavPresupMapper.java
+6
-1
No files found.
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Mapper/Components_Class/UzyTavPresupMapper.java
View file @
2f37fd30
...
@@ -31,10 +31,15 @@ public class UzyTavPresupMapper {
...
@@ -31,10 +31,15 @@ public class UzyTavPresupMapper {
ModelUzyTavPresup
entity
=
modelMapper
.
map
(
dto
,
ModelUzyTavPresup
.
class
);
ModelUzyTavPresup
entity
=
modelMapper
.
map
(
dto
,
ModelUzyTavPresup
.
class
);
Long
proyecID
=
dto
.
getUzytavproyec_id
();
Long
proyecID
=
dto
.
getUzytavproyec_id
();
Long
classpreID
=
dto
.
getUzytavclaspre_id
();
Long
classpreID
=
dto
.
getUzytavclaspre_id
();
if
(
proyecID
!=
null
){
ModelUzyTavProyec
proyec
=
entityManager
.
find
(
ModelUzyTavProyec
.
class
,
proyecID
);
ModelUzyTavProyec
proyec
=
entityManager
.
find
(
ModelUzyTavProyec
.
class
,
proyecID
);
ModelUzyTavClasPre
clasPre
=
entityManager
.
find
(
ModelUzyTavClasPre
.
class
,
classpreID
);
entity
.
setUzytavproyec
(
proyec
);
entity
.
setUzytavproyec
(
proyec
);
}
if
(
classpreID
!=
null
){
ModelUzyTavClasPre
clasPre
=
entityManager
.
find
(
ModelUzyTavClasPre
.
class
,
classpreID
);
entity
.
setUzytavclaspre
(
clasPre
);
entity
.
setUzytavclaspre
(
clasPre
);
}
return
entity
;
return
entity
;
}
}
public
List
<
DtoUzyTavPresup
>
entitiesToDtos
(
List
<
ModelUzyTavPresup
>
entities
)
{
public
List
<
DtoUzyTavPresup
>
entitiesToDtos
(
List
<
ModelUzyTavPresup
>
entities
)
{
...
...
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