Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Antonio Rueda
/
UJACoin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b8fed25d
authored
Nov 11, 2020
by
Antonio Rueda
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Cambio de estrategia de herencia a SINGLE_TABLE y de generación de
clave a IDENTITY
parent
e507814c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/main/java/es/ujaen/dae/ujacoin/entidades/movimientos/Movimiento.java
src/main/java/es/ujaen/dae/ujacoin/entidades/movimientos/Movimiento.java
View file @
b8fed25d
...
@@ -9,6 +9,7 @@ import java.io.Serializable;
...
@@ -9,6 +9,7 @@ import java.io.Serializable;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Id
;
import
javax.persistence.Inheritance
;
import
javax.persistence.Inheritance
;
import
javax.persistence.InheritanceType
;
import
javax.persistence.InheritanceType
;
...
@@ -20,10 +21,10 @@ import javax.validation.constraints.Positive;
...
@@ -20,10 +21,10 @@ import javax.validation.constraints.Positive;
* @author ajrueda
* @author ajrueda
*/
*/
@Entity
@Entity
@Inheritance
(
strategy
=
InheritanceType
.
TABLE_PER_CLASS
)
@Inheritance
(
strategy
=
InheritanceType
.
SINGLE_TABLE
)
public
abstract
class
Movimiento
implements
Serializable
{
public
abstract
class
Movimiento
implements
Serializable
{
@Id
@Id
@GeneratedValue
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
int
id
;
int
id
;
/** Fecha del movimiento */
/** Fecha del movimiento */
...
...
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