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
0057da32
Commit
0057da32
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 DtoUzyTavCabComca y ModelUzyTavCabComca
parent
e3bddd1a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
DtoUzyTavCabComca.java
...edu/espe/movilidad/MovilidadWS/Dto/DtoUzyTavCabComca.java
+7
-4
ModelUzyTavCabComca.java
...espe/movilidad/MovilidadWS/Model/ModelUzyTavCabComca.java
+6
-5
No files found.
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Dto/DtoUzyTavCabComca.java
View file @
0057da32
package
ec
.
edu
.
espe
.
movilidad
.
MovilidadWS
.
Dto
;
import
lombok.Data
;
import
org.springframework.web.multipart.MultipartFile
;
import
java.util.Date
;
import
javax.validation.constraints.Positive
;
import
javax.validation.constraints.Size
;
import
java.time.LocalDate
;
@Data
public
class
DtoUzyTavCabComca
{
@Positive
(
message
=
"El campo uzytavcabcomca_id debe ser un número positivo"
)
private
Long
uzytavcabcomca_id
;
@Size
(
max
=
500
)
private
String
uzytavcabcomca_decsrip
;
private
Date
uzytavcabcomca_fech_crea
;
private
LocalDate
uzytavcabcomca_fech_crea
;
@Positive
(
message
=
"El campo uzytavconsolca_id debe ser un número positivo"
)
private
Long
uzytavconsolca_id
;
}
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Model/ModelUzyTavCabComca.java
View file @
0057da32
...
...
@@ -4,7 +4,8 @@ import lombok.Getter;
import
lombok.Setter
;
import
javax.persistence.*
;
import
java.util.Date
;
import
javax.validation.constraints.Size
;
import
java.time.LocalDate
;
import
java.util.LinkedHashSet
;
import
java.util.Set
;
...
...
@@ -20,15 +21,15 @@ public class ModelUzyTavCabComca {
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"uzytavcabcomca_seq"
)
@Column
(
name
=
"uzytavcabcomca_id"
)
private
Long
uzytavcabcomca_id
;
@Column
(
name
=
"uzytavcabcomca_decsrip"
)
@Size
(
max
=
500
)
@Column
(
name
=
"uzytavcabcomca_decsrip"
,
length
=
500
)
private
String
uzytavcabcomca_decsrip
;
@Column
(
name
=
"uzytavcabcomca_fech_crea"
)
private
Date
uzytavcabcomca_fech_crea
;
private
Local
Date
uzytavcabcomca_fech_crea
;
//RELACION CON PROYECT- cabcomca es
la
padre
//RELACION CON PROYECT- cabcomca es
el
padre
@JsonIgnore
@OneToMany
(
mappedBy
=
"uzytavcabcomca"
)
private
Set
<
ModelUzyTavProyec
>
modelUzyTavProyecs
=
new
LinkedHashSet
<>();
...
...
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