SE AGREGAN LOS IDs SECUENCIALES A LAS TABLAS

parent 9405bc4b
......@@ -12,6 +12,8 @@ import java.util.Set;
public class ModelUzyTCanton {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytcanton_seq")
@SequenceGenerator(name = "uzytcanton_seq", sequenceName = "SEQ_UZYTCANTON", allocationSize = 1)
@Column(name = "uzytcanton_id")
private String uzytcanton_id;
......
......@@ -14,6 +14,8 @@ import java.util.Set;
@Table(name = "UZYTCATALOGOS_GENERALES")
public class ModelUzyTCatalogosGenerales {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytcatalogos_seq")
@SequenceGenerator(name = "uzytcatalogos_seq", sequenceName = "SEQ_UZYTCATALOGOS", allocationSize = 1)
@Column(name = "UZYTCATA_GEN_ID", nullable = false)
private Long id;
......
......@@ -11,6 +11,8 @@ import java.util.Set;
@Table(name = "uzytclasificador_presup", schema = "UTIC1")
public class ModelUzyTClasificadorPresup {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytclasificador_presup_seq")
@SequenceGenerator(name = "uzytclasificador_presup_seq", sequenceName = "SEQ_UZYTCLASIFICADOR_PRESUP", allocationSize = 1)
@Column(name = "uzytclasificador_presup_id")
private Long uzytclasificador_presup_id;
......
......@@ -3,10 +3,7 @@ package ec.edu.espe.movilidad.MovilidadWS.Model;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.*;
import javax.validation.constraints.Size;
@Getter
......@@ -15,6 +12,8 @@ import javax.validation.constraints.Size;
@Table(name = "UZYTMENU")
public class ModelUzyTMenu {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytmenu_seq")
@SequenceGenerator(name = "uzytmenu_seq", sequenceName = "SEQ_UZYTMENU", allocationSize = 1)
@Column(name = "UZYTMENU_ID", nullable = false)
private Long id;
......
......@@ -12,6 +12,8 @@ import java.util.Set;
public class ModelUzyTParroquia {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytparroquia_seq")
@SequenceGenerator(name = "uzytparroquia_seq", sequenceName = "SEQ_UZYTPARROQUIA", allocationSize = 1)
@Column(name = "uzytparroquia_id")
private String uzytparroquia_id;
......
......@@ -14,6 +14,8 @@ import java.util.Set;
@Table(name = "UZYTPERFIL")
public class ModelUzyTPerfil {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytperfil_seq")
@SequenceGenerator(name = "uzytperfil_seq", sequenceName = "SEQ_UZYTPERFIL", allocationSize = 1)
@Column(name = "UZYTPERFIL_ID", nullable = false)
private Long id;
......@@ -29,5 +31,4 @@ public class ModelUzyTPerfil {
joinColumns = @JoinColumn(name = "UZYTPERFIL_ID"),
inverseJoinColumns = @JoinColumn(name = "UZYTUSUARIO_ID"))
private Set<ModelUzyTUsuario> uzytusuarios = new LinkedHashSet<>();
}
......@@ -12,6 +12,8 @@ import javax.validation.constraints.NotNull;
@Table(name = "UZYTPERFILMENU")
public class ModelUzyTPerfilMenu {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytperfilmenu_seq")
@SequenceGenerator(name = "uzytperfilmenu_seq", sequenceName = "SEQ_UZYTPERFILMENU", allocationSize = 1)
@Column(name = "UZYTPERFILMENU_ID", nullable = false)
private Long id;
......
......@@ -11,6 +11,9 @@ import java.util.Set;
@Table(name = "uzytplanificacion", schema = "UTIC1")
public class ModelUzyTPlanificacion {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytplanificacion_id_seq")
@SequenceGenerator(name = "uzytplanificacion_id_seq", sequenceName = "SEQ_UZYTPLANIFICACION", allocationSize = 1)
@Column(name = "uzytplanificacion_id")
private Integer uzytplanificacionId;
......
......@@ -11,6 +11,9 @@ import java.util.Set;
@Table(name = "uzytprovincia", schema = "UTIC1")
public class ModelUzyTProvincia {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytprovincia_id_seq")
@SequenceGenerator(name = "uzytprovincia_id_seq", sequenceName = "SEQ_UZYTPROVINCIA", allocationSize = 1)
@Column(name = "uzytprovincia_id")
private String uzytprovincia_id;
......
......@@ -14,7 +14,8 @@ import java.util.Set;
public class ModelUzyTUsuario {
@Id
//@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytusuario_id_seq")
@SequenceGenerator(name = "uzytusuario_id_seq", sequenceName = "SEQ_UZYTUSUARIO", allocationSize = 1)
@Column(name = "uzytusuario_id")
private Long uzytusuario_id;
......
......@@ -14,6 +14,8 @@ public class ModelUzyTaValorPar {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavaloruzytparametros_seq")
@SequenceGenerator(name = "uzytavaloruzytparametros_seq", sequenceName = "SEQ_UZYTARAVALORPAR", allocationSize = 1)
@Column(name = "uzytavaloruzytparametros_id")
private Long uzytavaloruzytparametros_id;
......
......@@ -11,6 +11,8 @@ import java.time.LocalDate;
@Table(name = "uzytavactaresponsa", schema = "UTIC1")
public class ModelUzyTavActaResponsa {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavactaresponsa_seq")
@SequenceGenerator(name = "uzytavactaresponsa_seq", sequenceName = "SEQ_UZYTAVACTARESPONSA", allocationSize = 1)
@Column(name = "uzytavactaresponsa_code")
private Long uzytavactaresponsa_code;
......
......@@ -11,12 +11,11 @@ import java.util.Date;
@Table(name = "uzytavanexospr", schema = "UTIC1")
public class ModelUzyTavAnexoSPR {
@Id
//@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavanexospr_seq")
@SequenceGenerator(name = "uzytavanexospr_seq", sequenceName = "SEQ_UZYTAVANEXOSPR", allocationSize = 1)
@Column(name = "uzytavanexospr_id")
private Long uzytavanexosprId;
@Column(name = "uzytavanexospr_nombre")
private String uzytavanexospr_nombre;
......
......@@ -11,7 +11,8 @@ import javax.persistence.*;
public class ModelUzyTavAnualValor {
@Id
//@GeneratedValue(strategy = GenerationType.IDENTITY)
@SequenceGenerator(name = "uzytavanualvalor_seq", sequenceName = "SEQ_UZYTAVANUALVALOR", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavanualvalor_seq")
@Column(name = "uzytavanualvalor_id")
private Long uzytavanualvalor_id;
......
......@@ -13,6 +13,8 @@ public class ModelUzyTavCabComca {
@Id
@SequenceGenerator(name = "uzytavcabcomca_seq", sequenceName = "SEQ_UZYTAVCABCOMCA", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavcabcomca_seq")
@Column(name = "uzytavcabcomca_id")
private Long uzytavcabcomca_id;
......
......@@ -12,6 +12,8 @@ import javax.persistence.*;
public class ModelUzyTavCabParaevaf {
@Id
@SequenceGenerator(name = "uzytavcabparaevaf_seq", sequenceName = "SEQ_UZYTAVCABPARAEVAF", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavcabparaevaf_seq")
@Column(name = "uzytavcabparaevaf_id")
private Long uzytavcabparaevaf_id;
......
......@@ -13,6 +13,8 @@ import java.util.Set;
public class ModelUzyTavCabeValp {
@Id
@SequenceGenerator(name = "uzytavcabevalp_seq", sequenceName = "SEQ_UZYTAVCABEVALP", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavcabevalp_seq")
@Column(name = "uzytavcabevalp_id")
private Long uzytavcabevalp_id;
......
......@@ -12,6 +12,8 @@ import java.util.Set;
public class ModelUzyTavClasPre {
@Id
@SequenceGenerator(name = "uzytavclaspre_seq", sequenceName = "SEQ_UZYTAVCLASPRE", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavclaspre_seq")
@Column(name = "uzytavclaspre_id", nullable = false)
private Long uzytavclaspre_id;
......
......@@ -11,7 +11,8 @@ public class ModelUzyTavConfiguracion {
private static final long serialVersionUID = 1L;
@Id
//@GeneratedValue(strategy = GenerationType.IDENTITY)
@SequenceGenerator(name = "uzytavconfiguracion_seq", sequenceName = "SEQ_UZYTAVCONFIGURACION", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavconfiguracion_seq")
@Column(name = "uzytavconfiguracion_id")
private Long uzytavconfiguracion_id;
......
......@@ -15,6 +15,8 @@ import java.util.Set;
public class ModelUzyTavConparaEva {
@Id
@SequenceGenerator(name = "uzytavconparaeva_seq", sequenceName = "SEQ_UZYTAVCONPARAEVA", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavconparaeva_seq")
@Column(name = "uzytavconparaeva_id")
private Long uzytavconparaeva_id;
......
......@@ -16,7 +16,8 @@ public class ModelUzyTavConsolca {
private static final long serialVersionUID = 1L;
@Id
//@GeneratedValue(strategy = GenerationType.IDENTITY)
@SequenceGenerator(name = "uzytavconsolca_seq", sequenceName = "SEQ_UZYTAVCONSOLCA", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavconsolca_seq")
@Column(name = "uzytavconsolca_id")
private Long uzytavconsolca_id;
......
......@@ -15,8 +15,8 @@ import java.util.Set;
public class ModelUzyTavConvoca {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_UZYTAVCONVOCA")
@SequenceGenerator(name = "SEQ_UZYTAVCONVOCA", sequenceName = "SEQ_UZYTAVCONVOCA", allocationSize = 1)
@SequenceGenerator(name = "uzytavconvoca_seq", sequenceName = "SEQ_UZYTAVCONVOCA", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavconvoca_seq")
@Column(name = "uzytavconvoca_id")
private Long uzytavconvoca_id;
......
......@@ -11,7 +11,8 @@ import javax.persistence.*;
public class ModelUzyTavCoordinadorVincu {
@Id
//@GeneratedValue(strategy = GenerationType.IDENTITY)
@SequenceGenerator(name = "uzytavcoordinador_vincu_seq", sequenceName = "SEQ_UZYTAVCOORDINADOR_VINCU", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavcoordinador_vincu_seq")
@Column(name = "uzytavcoordinador_vincu_id")
private Long uzytavcoordinador_vincu_id;
......
......@@ -13,6 +13,8 @@ import java.util.Set;
@Table(name = "uzytavdetcomca", schema = "UTIC1")
public class ModelUzyTavDetComca {
@Id
@SequenceGenerator(name = "uzytavdetcomca_seq", sequenceName = "SEQ_UZYTAVDETCOMCA", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavdetcomca_seq")
@Column(name = "uzytavdetcomca_id")
private Long uzytavdetcomca_id;
......
......@@ -12,7 +12,8 @@ import javax.persistence.*;
public class ModelUzyTavEvalProy {
@Id
// @GeneratedValue(strategy = GenerationType.IDENTITY)
@SequenceGenerator(name = "uzytavevalproy_seq", sequenceName = "SEQ_UZYTAVEVALPROY", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavevalproy_seq")
@Column(name = "uzytavevalproy_id")
private Long uzytavevalproy_id;
......
......@@ -13,6 +13,8 @@ import java.time.LocalDate;
public class ModelUzyTavHorEjec {
@Id
@SequenceGenerator(name = "uzytavhorejec_seq", sequenceName = "SEQ_UZYTAVHOREJEC", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavhorejec_seq")
@Column(name = "uzytavhorejec_code")
private Long code;
......
......@@ -12,6 +12,8 @@ import java.util.Date;
public class ModelUzyTavInstituc {
@Id
@SequenceGenerator(name = "uzytavinstituc_seq", sequenceName = "SEQ_UZYTAVINSTITUC", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavinstituc_seq")
@Column(name = "uzytavinstituc_id")
private Long uzytavinstituc_id;
......
......@@ -13,8 +13,8 @@ import java.util.Set;
public class ModelUzyTavLineaOperativa {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavconvoca_seq")
@SequenceGenerator(name = "uzytavconvoca_seq", sequenceName = "SEQ_UZYTAVCONVOCA", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavlineaoperativa_seq")
@SequenceGenerator(name = "uzytavlineaoperativa_seq", sequenceName = "SEQ_UZYTAVLINEAOPERATIVA", allocationSize = 1)
@Column(name = "UZYTAVLINEAOPERATIVA_ID", nullable = false)
private Integer UZYTAVLINEAOPERATIVA_ID;
......
......@@ -13,6 +13,8 @@ import java.util.Date;
public class ModelUzyTavOpcionInstitucion {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavopcion_institucion_seq")
@SequenceGenerator(name = "uzytavopcion_institucion_seq", sequenceName = "SEQ_UZYTAVOPCION_INSTITUCION", allocationSize = 1)
@Column(name = "uzytavopcion_institucion_id")
private Long uzytavopcion_institucion_id;
......
......@@ -12,6 +12,8 @@ import java.util.Set;
public class ModelUzyTavParaEva {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavparaeva_seq")
@SequenceGenerator(name = "uzytavparaeva_seq", sequenceName = "SEQ_UZYTAVPARAEVA", allocationSize = 1)
@Column(name = "uzytavparaeva_id")
private Long uzytavparaeva_id;
......
......@@ -13,6 +13,8 @@ import java.util.Set;
public class ModelUzyTavParametros_Det {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytparametros_det_seq")
@SequenceGenerator(name = "uzytparametros_det_seq", sequenceName = "SEQ_UZYPARAMETROS_DET", allocationSize = 1)
@Column(name = "uzytparametros_det_id")
private Long id;
//REFERENCIA CON PROYECTO
......
......@@ -14,7 +14,8 @@ import java.util.Set;
public class ModelUzyTavPresup {
@Id
//@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavpresup_seq")
@SequenceGenerator(name = "uzytavpresup_seq", sequenceName = "SEQ_UZYPRESUP", allocationSize = 1)
@Column(name = "uzytavpresup_id", nullable = false)
private Long uzytavpresup_id;
......
......@@ -13,6 +13,8 @@ import java.util.Set;
public class ModelUzyTavPrograma_V {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavprograma_seq")
@SequenceGenerator(name = "uzytavprograma_seq", sequenceName = "SEQ_UZYTAVPROGRAMA", allocationSize = 1)
@Column(name = "uzytavprograma_v_id")
private Long uzytavprograma_v_id;
......
......@@ -16,6 +16,8 @@ public class ModelUzyTavProyec {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "proyec_seq")
@SequenceGenerator(name = "proyec_seq", sequenceName = "SEQ_PROYEC", allocationSize = 1)
@Column(name = "uzytavproyec_id")
private Long uzytavproyec_id;
......
......@@ -11,7 +11,8 @@ import java.util.Set;
@Table(name = "uzytavresponsable_prog", schema = "UTIC1")
public class ModelUzyTavResponsableProg {
@Id
//@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavresponsable_prog_seq")
@SequenceGenerator(name = "uzytavresponsable_prog_seq", sequenceName = "SEQ_UZYTAVRESPONSABLEPROG", allocationSize = 1)
@Column(name = "uzytavresponsable_prog_id")
private Long uzytavresponsable_prog_id;
......
......@@ -12,7 +12,8 @@ import java.util.Set;
public class ModelUzyTavTipres {
@Id
//@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavtipres_seq")
@SequenceGenerator(name = "uzytavtipres_seq", sequenceName = "SEQ_UZYTAVTIPRES", allocationSize = 1)
@Column(name = "uzytavtipres_id")
private Long id;
......
......@@ -11,6 +11,8 @@ import javax.persistence.*;
public class ModelUzyTavZonaDetalle {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavzona_detalle_seq")
@SequenceGenerator(name = "uzytavzona_detalle_seq", sequenceName = "SEQ_UZYTAVZONA_DETALLE", allocationSize = 1)
@Column(name = "uzytavzona_detalle_id")
private Long uzytavzona_detalle_id;
......
......@@ -15,6 +15,8 @@ import java.util.Set;
public class ModelUzyTavacAprueba {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavactaprueba_seq")
@SequenceGenerator(name = "uzytavactaprueba_seq", sequenceName = "SEQ_UZYTAVACTAPRUEBA", allocationSize = 1)
@Column(name = "uzytavactaprueba_id")
private Long uzytavactaprueba_id;
......
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 to comment