Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
BackEnd-V1
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-V1
Commits
6ff024b2
Commit
6ff024b2
authored
May 18, 2023
by
Joel Andres Molina Velez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configuración para que los Ids de las tablas sean autoincrementables
parent
0ab52fb9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
ModelExample.java
...ec/edu/espe/movilidad/MovilidadWS/model/ModelExample.java
+1
-1
ModelParameters.java
...edu/espe/movilidad/MovilidadWS/model/ModelParameters.java
+2
-4
No files found.
src/main/java/ec/edu/espe/movilidad/MovilidadWS/model/ModelExample.java
View file @
6ff024b2
...
...
@@ -13,7 +13,7 @@ public class ModelExample {
private
static
final
long
serialVersionUID
=
1L
;
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@Column
(
name
=
"UZITAREA_CODE"
)
private
Long
id
;
...
...
src/main/java/ec/edu/espe/movilidad/MovilidadWS/model/ModelParameters.java
View file @
6ff024b2
...
...
@@ -2,10 +2,7 @@ package ec.edu.espe.movilidad.MovilidadWS.model;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.persistence.*
;
@Data
@Entity
...
...
@@ -14,6 +11,7 @@ public class ModelParameters {
private
static
final
long
serialVersionUID
=
1L
;
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@Column
(
name
=
"num"
)
private
Long
id
;
...
...
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