Commit b8fed25d by Antonio Rueda

Cambio de estrategia de herencia a SINGLE_TABLE y de generación de

clave a IDENTITY
parent e507814c
......@@ -9,6 +9,7 @@ import java.io.Serializable;
import java.time.LocalDateTime;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
......@@ -20,10 +21,10 @@ import javax.validation.constraints.Positive;
* @author ajrueda
*/
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
public abstract class Movimiento implements Serializable {
@Id
@GeneratedValue
@GeneratedValue(strategy=GenerationType.IDENTITY)
int id;
/** Fecha del movimiento */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment