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
abbc23ae
Commit
abbc23ae
authored
Aug 21, 2023
by
Joel Andres Molina Velez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Se agregan anotaciones de validación en DtoUzyTavCoordinadorVincu y ModelUzyTavCoordinadorVincu
parent
9eb5257f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
DtoUzyTavCoordinadorVincu.java
.../movilidad/MovilidadWS/Dto/DtoUzyTavCoordinadorVincu.java
+8
-3
ModelUzyTavCoordinadorVincu.java
...ilidad/MovilidadWS/Model/ModelUzyTavCoordinadorVincu.java
+4
-3
No files found.
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Dto/DtoUzyTavCoordinadorVincu.java
View file @
abbc23ae
package
ec
.
edu
.
espe
.
movilidad
.
MovilidadWS
.
Dto
;
package
ec
.
edu
.
espe
.
movilidad
.
MovilidadWS
.
Dto
;
import
lombok.Data
;
import
lombok.Data
;
import
org.springframework.web.multipart.MultipartFile
;
import
java.util.Date
;
import
javax.validation.constraints.Positive
;
import
javax.validation.constraints.Size
;
@Data
@Data
public
class
DtoUzyTavCoordinadorVincu
{
public
class
DtoUzyTavCoordinadorVincu
{
@Positive
(
message
=
"El campo uzytavcoordinador_vincu_id debe ser un número positivo"
)
private
Long
uzytavcoordinador_vincu_id
;
private
Long
uzytavcoordinador_vincu_id
;
@Positive
(
message
=
"El campo uzytusuario_id debe ser un número positivo"
)
private
Long
uzytusuario_id
;
private
Long
uzytusuario_id
;
@Size
(
max
=
4
)
private
String
stvsubj_code
;
private
String
stvsubj_code
;
@Size
(
max
=
3
)
private
String
stvcamp_code
;
private
String
stvcamp_code
;
@Size
(
max
=
4
)
private
String
stvmajr_code
;
private
String
stvmajr_code
;
}
}
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Model/ModelUzyTavCoordinadorVincu.java
View file @
abbc23ae
...
@@ -4,6 +4,7 @@ import lombok.Getter;
...
@@ -4,6 +4,7 @@ import lombok.Getter;
import
lombok.Setter
;
import
lombok.Setter
;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
javax.validation.constraints.Size
;
@Getter
@Getter
@Setter
@Setter
...
@@ -16,13 +17,13 @@ public class ModelUzyTavCoordinadorVincu {
...
@@ -16,13 +17,13 @@ public class ModelUzyTavCoordinadorVincu {
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"uzytavcoordinador_vincu_seq"
)
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"uzytavcoordinador_vincu_seq"
)
@Column
(
name
=
"uzytavcoordinador_vincu_id"
)
@Column
(
name
=
"uzytavcoordinador_vincu_id"
)
private
Long
uzytavcoordinador_vincu_id
;
private
Long
uzytavcoordinador_vincu_id
;
@Size
(
max
=
4
)
@Column
(
name
=
"stvsubj_code"
,
length
=
4
)
@Column
(
name
=
"stvsubj_code"
,
length
=
4
)
private
String
stvsubj_code
;
private
String
stvsubj_code
;
@Size
(
max
=
3
)
@Column
(
name
=
"stvcamp_code"
,
length
=
3
)
@Column
(
name
=
"stvcamp_code"
,
length
=
3
)
private
String
stvcamp_code
;
private
String
stvcamp_code
;
@Size
(
max
=
4
)
@Column
(
name
=
"stvmajr_code"
,
length
=
4
)
@Column
(
name
=
"stvmajr_code"
,
length
=
4
)
private
String
stvmajr_code
;
private
String
stvmajr_code
;
...
...
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