mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-02-08 11:59:13 +00:00
35 lines
1.2 KiB
Java
35 lines
1.2 KiB
Java
package com.imprimelibros.erp.facturacion;
|
|
|
|
import com.imprimelibros.erp.common.jpa.AbstractAuditedEntitySoftTs;
|
|
import jakarta.persistence.*;
|
|
|
|
@Entity
|
|
@Table(name = "series_facturas")
|
|
public class SerieFactura extends AbstractAuditedEntitySoftTs {
|
|
|
|
@Column(name = "nombre_serie", nullable = false, length = 100)
|
|
private String nombreSerie;
|
|
|
|
@Column(name = "prefijo", nullable = false, length = 10)
|
|
private String prefijo;
|
|
|
|
@Enumerated(EnumType.STRING)
|
|
@Column(name = "tipo", nullable = false, length = 50)
|
|
private TipoSerieFactura tipo = TipoSerieFactura.facturacion;
|
|
|
|
@Column(name = "numero_actual", nullable = false)
|
|
private Long numeroActual = 1L;
|
|
|
|
public String getNombreSerie() { return nombreSerie; }
|
|
public void setNombreSerie(String nombreSerie) { this.nombreSerie = nombreSerie; }
|
|
|
|
public String getPrefijo() { return prefijo; }
|
|
public void setPrefijo(String prefijo) { this.prefijo = prefijo; }
|
|
|
|
public TipoSerieFactura getTipo() { return tipo; }
|
|
public void setTipo(TipoSerieFactura tipo) { this.tipo = tipo; }
|
|
|
|
public Long getNumeroActual() { return numeroActual; }
|
|
public void setNumeroActual(Long numeroActual) { this.numeroActual = numeroActual; }
|
|
}
|