mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-02-01 08:38:51 +00:00
63 lines
1.4 KiB
Java
63 lines
1.4 KiB
Java
package com.imprimelibros.erp.presupuesto.maquetacion;
|
|
|
|
import jakarta.persistence.*;
|
|
|
|
@Entity
|
|
@Table(name = "maquetacion_matrices_formato")
|
|
public class MaquetacionMatrices {
|
|
|
|
public enum Formato{
|
|
A5, _17x24_, A4;
|
|
private final String label;
|
|
Formato() {
|
|
this.label = this.name().indexOf('_') > -1 ? this.name().replace("_", "") + " mm" : this.name();
|
|
}
|
|
|
|
public String getLabel() {
|
|
return label;
|
|
}
|
|
}
|
|
|
|
public enum FontSize{
|
|
small("presupuesto.maquetacion.cuerpo-texto-pequeño"),
|
|
medium("presupuesto.maquetacion.cuerpo-texto-medio"),
|
|
big("presupuesto.maquetacion.cuerpo-texto-grande");
|
|
|
|
private final String messageKey;
|
|
FontSize(String messageKey) {
|
|
this.messageKey = messageKey;
|
|
}
|
|
public String getMessageKey() {
|
|
return messageKey;
|
|
}
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Long id;
|
|
|
|
@Enumerated(EnumType.STRING)
|
|
private Formato formato;
|
|
|
|
@Enumerated(EnumType.STRING)
|
|
private FontSize tamanio_letra;
|
|
|
|
private int matrices_pagina;
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public Formato getFormato() {
|
|
return formato;
|
|
}
|
|
|
|
public FontSize getTamanioLetra() {
|
|
return tamanio_letra;
|
|
}
|
|
|
|
public int getMatricesPagina() {
|
|
return matrices_pagina;
|
|
}
|
|
}
|