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
899b5896
Commit
899b5896
authored
Aug 16, 2023
by
Joel Andres Molina Velez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Se agregan dos campos en ModelUzyTavInstProy y DtoUzyTavInstProy
parent
bdfa2cf5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
DtoUzyTavInstProy.java
...edu/espe/movilidad/MovilidadWS/Dto/DtoUzyTavInstProy.java
+4
-0
ModelUzyTavInstProy.java
...espe/movilidad/MovilidadWS/Model/ModelUzyTavInstProy.java
+6
-0
ServiceUzyTavInstProy.java
...lidadWS/Service/UzyTavInstProy/ServiceUzyTavInstProy.java
+6
-0
No files found.
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Dto/DtoUzyTavInstProy.java
View file @
899b5896
...
...
@@ -36,5 +36,9 @@ public class DtoUzyTavInstProy {
private
Integer
uzytavinstproy_indirectos
;
@Size
(
max
=
150
)
private
String
uzytavinstproy_desc_benefic
;
@Positive
(
message
=
"El campo uzytavinstproy_DIRECTOS debe ser un número positivo"
)
private
Integer
uzytavinstproy_DIRECTOS
;
@Positive
(
message
=
"El campo uzytavinstproy_TOTAL debe ser un número positivo"
)
private
Integer
uzytavinstproy_TOTAL
;
}
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Model/ModelUzyTavInstProy.java
View file @
899b5896
...
...
@@ -73,6 +73,12 @@ public class ModelUzyTavInstProy {
@Column
(
name
=
"uzytavinstproy_desc_benefic"
,
length
=
150
)
private
String
uzytavinstproy_desc_benefic
;
@Column
(
name
=
"uzytavinstproy_DIRECTOS"
)
private
Integer
uzytavinstproy_DIRECTOS
;
@Column
(
name
=
"uzytavinstproy_TOTAL"
)
private
Integer
uzytavinstproy_TOTAL
;
//RELACIÓN CON uzytavinstproy- TABLA HIJA
@JsonIgnore
...
...
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Service/UzyTavInstProy/ServiceUzyTavInstProy.java
View file @
899b5896
...
...
@@ -118,6 +118,12 @@ public class ServiceUzyTavInstProy implements IServiceUzyTavInstProy {
if
(
dtoUzyTavInstProy
.
getUzytavinstproy_desc_benefic
()
!=
null
)
{
entity
.
setUzytavinstproy_desc_benefic
(
dtoUzyTavInstProy
.
getUzytavinstproy_desc_benefic
());
}
if
(
dtoUzyTavInstProy
.
getUzytavinstproy_DIRECTOS
()
!=
null
)
{
entity
.
setUzytavinstproy_DIRECTOS
(
dtoUzyTavInstProy
.
getUzytavinstproy_DIRECTOS
());
}
if
(
dtoUzyTavInstProy
.
getUzytavinstproy_TOTAL
()
!=
null
)
{
entity
.
setUzytavinstproy_TOTAL
(
dtoUzyTavInstProy
.
getUzytavinstproy_TOTAL
());
}
ModelUzyTavInstProy
updatedEntity
=
daoUzyTavInstProy
.
save
(
entity
);
return
mapper
.
entityToDto
(
updatedEntity
);
}
else
{
...
...
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