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
5d3f2439
Commit
5d3f2439
authored
Jun 25, 2023
by
Joel Andres Molina Velez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Se modifican el servicio de eliminar de ServiceUzyTavOpcionInstitucion
parent
e15b8786
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
IServiceUzyTavOpcionInstitucion.java
...TavOpcionInstitucion/IServiceUzyTavOpcionInstitucion.java
+1
-1
ServiceUzyTavOpcionInstitucion.java
...yTavOpcionInstitucion/ServiceUzyTavOpcionInstitucion.java
+8
-3
No files found.
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Service/UzyTavOpcionInstitucion/IServiceUzyTavOpcionInstitucion.java
View file @
5d3f2439
...
...
@@ -13,6 +13,6 @@ public interface IServiceUzyTavOpcionInstitucion {
DtoUzyTavOpcionInstitucion
editar
(
Long
id
,
DtoUzyTavOpcionInstitucion
dtoUzyTavOpcionInstitucion
);
void
eliminar
(
Long
id
);
boolean
eliminar
(
Long
id
);
}
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Service/UzyTavOpcionInstitucion/ServiceUzyTavOpcionInstitucion.java
View file @
5d3f2439
...
...
@@ -76,9 +76,14 @@ public class ServiceUzyTavOpcionInstitucion implements IServiceUzyTavOpcionInsti
}
}
@Override
public
void
eliminar
(
Long
id
)
{
ModelUzyTavOpcionInstitucion
dato
=
daoUzyTavOpcionInstitucion
.
findById
(
id
).
get
();
daoUzyTavOpcionInstitucion
.
delete
(
dato
);
public
boolean
eliminar
(
Long
id
)
{
ModelUzyTavOpcionInstitucion
entity
=
daoUzyTavOpcionInstitucion
.
findById
(
id
).
orElse
(
null
);
if
(
entity
!=
null
)
{
daoUzyTavOpcionInstitucion
.
delete
(
entity
);
return
true
;
}
return
false
;
}
}
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