Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
BackEnd-V2
Project
Project
Details
Activity
Releases
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
739fbd1b
Commit
739fbd1b
authored
Aug 23, 2023
by
Joel Andres Molina Velez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Se modifica el UzyTavCabeValpMapper
parent
147e4450
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
UzyTavCabeValpMapper.java
...lidadWS/Mapper/Components_Class/UzyTavCabeValpMapper.java
+13
-6
No files found.
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Mapper/Components_Class/UzyTavCabeValpMapper.java
View file @
739fbd1b
...
...
@@ -33,12 +33,19 @@ public class UzyTavCabeValpMapper {
Long
proyecID
=
dto
.
getUzytavproyec_id
();
Long
consolcaID
=
dto
.
getUzytavconsolca_id
();
Long
detcomcaID
=
dto
.
getUzytavdetcomca_id
();
ModelUzyTavProyec
proyec
=
entityManager
.
find
(
ModelUzyTavProyec
.
class
,
proyecID
);
ModelUzyTavConsolca
consolca
=
entityManager
.
find
(
ModelUzyTavConsolca
.
class
,
consolcaID
);
ModelUzyTavDetComca
detComca
=
entityManager
.
find
(
ModelUzyTavDetComca
.
class
,
detcomcaID
);
entity
.
setUzytavproyec
(
proyec
);
entity
.
setUzytavconsolca
(
consolca
);
entity
.
setUzytavdetcomca
(
detComca
);
if
(
proyecID
!=
null
){
ModelUzyTavProyec
proyec
=
entityManager
.
find
(
ModelUzyTavProyec
.
class
,
proyecID
);
entity
.
setUzytavproyec
(
proyec
);
}
if
(
consolcaID
!=
null
){
ModelUzyTavConsolca
consolca
=
entityManager
.
find
(
ModelUzyTavConsolca
.
class
,
consolcaID
);
entity
.
setUzytavconsolca
(
consolca
);
}
if
(
detcomcaID
!=
null
){
ModelUzyTavDetComca
detComca
=
entityManager
.
find
(
ModelUzyTavDetComca
.
class
,
detcomcaID
);
entity
.
setUzytavdetcomca
(
detComca
);
}
return
entity
;
}
public
List
<
DtoUzyTavCabeValp
>
entitiesToDtos
(
List
<
ModelUzyTavCabeValp
>
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