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
6b934cf9
Commit
6b934cf9
authored
Aug 16, 2023
by
Joel Andres Molina Velez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Se agregan anotaciones de validación en DtoUzyTavClasPre y ModelUzyTavClasPre
parent
3e9c3145
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
DtoUzyTavClasPre.java
.../edu/espe/movilidad/MovilidadWS/Dto/DtoUzyTavClasPre.java
+7
-1
ModelUzyTavClasPre.java
.../espe/movilidad/MovilidadWS/Model/ModelUzyTavClasPre.java
+3
-2
No files found.
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Dto/DtoUzyTavClasPre.java
View file @
6b934cf9
...
...
@@ -2,14 +2,20 @@ package ec.edu.espe.movilidad.MovilidadWS.Dto;
import
lombok.Data
;
import
javax.validation.constraints.Positive
;
import
javax.validation.constraints.Size
;
@Data
public
class
DtoUzyTavClasPre
{
@Positive
(
message
=
"El campo uzytavclaspre_id debe ser un número positivo"
)
private
Long
uzytavclaspre_id
;
private
DtoUzyTClasificadorPresup
uzytclasificador_presup
;
@Size
(
max
=
1
)
private
String
uzytavclaspre_estado
;
@Positive
(
message
=
"El campo uzytclasificador_presup_id debe ser un número positivo"
)
private
Long
uzytclasificador_presup_id
;
@Size
(
max
=
1
)
private
String
uzytavclaspre_tipo
;
}
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Model/ModelUzyTavClasPre.java
View file @
6b934cf9
...
...
@@ -5,6 +5,7 @@ import lombok.Getter;
import
lombok.Setter
;
import
javax.persistence.*
;
import
javax.validation.constraints.Size
;
import
java.util.LinkedHashSet
;
import
java.util.Set
;
...
...
@@ -19,10 +20,10 @@ public class ModelUzyTavClasPre {
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"uzytavclaspre_seq"
)
@Column
(
name
=
"uzytavclaspre_id"
)
private
Long
uzytavclaspre_id
;
@Size
(
max
=
1
)
@Column
(
name
=
"uzytavclaspre_estado"
,
length
=
1
)
private
String
uzytavclaspre_estado
;
@Size
(
max
=
1
)
@Column
(
name
=
"uzytavclaspre_tipo"
,
length
=
1
)
private
String
uzytavclaspre_tipo
;
...
...
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