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
cca921b7
Commit
cca921b7
authored
Jul 31, 2023
by
Joel Andres Molina Velez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Se agregan las anotaciones de las propiedades en el DtoUzyTavCaprog y en el ModelUzyTavCaprog
parent
6c3eb963
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
DtoUzyTavCaprog.java
...c/edu/espe/movilidad/MovilidadWS/Dto/DtoUzyTavCaprog.java
+9
-5
ModelUzyTavCaprog.java
...u/espe/movilidad/MovilidadWS/Model/ModelUzyTavCaprog.java
+6
-6
No files found.
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Dto/DtoUzyTavCaprog.java
View file @
cca921b7
package
ec
.
edu
.
espe
.
movilidad
.
MovilidadWS
.
Dto
;
import
lombok.Data
;
import
javax.validation.constraints.Positive
;
import
javax.validation.constraints.Size
;
@Data
public
class
DtoUzyTavCaprog
{
private
Long
UZYTAVCAPROG_ID
;
private
Long
UZYTAVPROGRAMA_V_ID
;
private
String
STVMAJR_CODE
;
@Positive
(
message
=
"El campo uzytavcaprog_id debe ser un número positivo"
)
private
Long
uzytavcaprog_id
;
@Positive
(
message
=
"El campo uzytavprograma_v_id debe ser un número positivo"
)
private
Long
uzytavprograma_v_id
;
@Size
(
max
=
4
)
private
String
stvmajr_code
;
}
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Model/ModelUzyTavCaprog.java
View file @
cca921b7
...
...
@@ -8,18 +8,18 @@ import javax.validation.constraints.Size;
@Getter
@Setter
@Entity
@Table
(
name
=
"
UZYTAVCAPROG
"
,
schema
=
"UTIC1"
)
@Table
(
name
=
"
uzytavcaprog
"
,
schema
=
"UTIC1"
)
public
class
ModelUzyTavCaprog
{
@Id
@Column
(
name
=
"
UZYTAVCAPROG_ID
"
)
private
Long
UZYTAVCAPROG_ID
;
@Column
(
name
=
"
uzytavcaprog_id
"
)
private
Long
uzytavcaprog_id
;
@ManyToOne
(
fetch
=
FetchType
.
LAZY
)
@JoinColumn
(
name
=
"
UZYTAVPROGRAMA_V_ID
"
)
@JoinColumn
(
name
=
"
uzytavprograma_v_id
"
)
private
ModelUzyTavPrograma_V
uzytavprograma_v
;
@Size
(
max
=
4
)
@Column
(
name
=
"
STVMAJR_CODE
"
,
length
=
4
)
private
String
STVMAJR_CODE
;
@Column
(
name
=
"
stvmajr_code
"
,
length
=
4
)
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