añadido ID a presupuestos

This commit is contained in:
2025-10-06 19:03:02 +02:00
parent 1e8f9cafb3
commit c48b9e2a3a

View File

@ -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;
}
}