From c48b9e2a3ae50da869fcd6af7c9f4e47326bcff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Mon, 6 Oct 2025 19:03:02 +0200 Subject: [PATCH] =?UTF-8?q?a=C3=B1adido=20ID=20a=20presupuestos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../imprimelibros/erp/presupuesto/Presupuesto.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/com/imprimelibros/erp/presupuesto/Presupuesto.java b/src/main/java/com/imprimelibros/erp/presupuesto/Presupuesto.java index 972ca44..3b74451 100644 --- a/src/main/java/com/imprimelibros/erp/presupuesto/Presupuesto.java +++ b/src/main/java/com/imprimelibros/erp/presupuesto/Presupuesto.java @@ -188,6 +188,11 @@ public class Presupuesto extends AbstractAuditedEntity implements Cloneable { // ====== TUS CAMPOS ORIGINALES ====== + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Column(name = "id") + private Long id; + @NotNull(message = "{presupuesto.errores.tipo-encuadernacion}", groups = PresupuestoValidationGroups.DatosGenerales.class) @Enumerated(EnumType.STRING) @Column(name = "tipo_encuadernacion") @@ -858,4 +863,11 @@ public class Presupuesto extends AbstractAuditedEntity implements Cloneable { this.altoFaja = altoFaja; } + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } }