Refactoring del costruttore di EntityBase in modo che accetti in input il Logger non ne istanzi uno nuovo per ogni entity creata. Refactoring anche di tutte le Entity in modo che passino l'istanza statica privata del logger.

Valorizzate anche a compile time tutte le EntityChild che sono delle liste, in modo che il costruttore in EntityBase non usi le reflection per farlo.
This commit is contained in:
2024-08-22 13:41:13 +02:00
parent 2262b6db2e
commit fd0a686078
511 changed files with 7730 additions and 5726 deletions

View File

@@ -158,7 +158,6 @@ public class EntityDevelopmentService {
final BlockStmt constructorBlockStmt = constructorDeclaration.getBody();
constructorBlockStmt.addStatement(new MethodCallExpr("super",
new BooleanLiteralExpr(false),
new NameExpr("logger")));
}

View File

@@ -21,7 +21,7 @@ public class ForeignKeyRules {
HashMap<String, Object> value = UtilityDB.executeSimpleQueryOnlyFirstRow(conn, sql);
if (value == null || value.size() == 0) {
if (value == null || value.isEmpty()) {
String messageString = UtilityMessage.concatFields(foreignKeyDTO.getSqlFields());
if (ForeignKeyDTO.tableConstraintBindings.containsKey(foreignKeyDTO.getTableName())) {

View File

@@ -238,7 +238,7 @@ public class EmsServices {
} catch (Exception ex) {
if (headless) {
List<EntityBase> entityBases = new ArrayList<>();
EntityBase entityBase = new EntityBase() {
EntityBase entityBase = new EntityBase(logger) {
};
EntityException newEx = new EntityException(ex.getMessage());
newEx.setStackTrace(ex.getStackTrace());
@@ -291,7 +291,7 @@ public class EmsServices {
} catch (Exception ex) {
if (headless) {
List<EntityBase> entityBases = new ArrayList<EntityBase>();
EntityBase entityBase = new EntityBase() {
EntityBase entityBase = new EntityBase(logger) {
};
EntityException newEx = new EntityException(ex.getMessage());
newEx.setStackTrace(ex.getStackTrace());

View File

@@ -1,11 +1,13 @@
package it.integry.ems_model.base;
import org.apache.logging.log4j.Logger;
public abstract class ComposedEntityBase extends EntityBase implements ComposedEntityInterface {
private static final long serialVersionUID = 1L;
public ComposedEntityBase() {
super();
public ComposedEntityBase(Logger logger) {
super(logger);
}
}

View File

@@ -125,12 +125,7 @@ public abstract class EntityBase implements Serializable, Cloneable, EntityInter
@JsonIgnore
private EntityBase originalEntity;
@SuppressWarnings("rawtypes")
public EntityBase() {
this(true, null);
}
public EntityBase(boolean execInit, Logger logger) {
public EntityBase(Logger logger) {
JsonTypeName t = getClass().getAnnotation(JsonTypeName.class);
if (t != null) {
@@ -143,25 +138,6 @@ public abstract class EntityBase implements Serializable, Cloneable, EntityInter
this.logger = logger;
else
this.logger = LogManager.getLogger();
if (execInit) {
List<Field> entityChildFields = getEntityHolder().getEntityChildrenFields(this.getClass());
if (entityChildFields == null) return;
for (Field field : entityChildFields) {
field.setAccessible(true);
try {
Object object = field.get(this);
if (object == null && field.getType().isAssignableFrom(List.class)) {
object = new ArrayList<>();
field.set(this, object);
}
} catch (IllegalAccessException ex) {
logger.error(ex);
}
}
}
}
@Override

View File

@@ -5,14 +5,17 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import it.integry.ems_model.annotation.FK;
@PropertyReactive
@Table(ArlListDataAttach.ENTITY)
@JsonTypeName(ArlListDataAttach.ENTITY)
public class ArlListDataAttach extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "arl_list_data_attach";
private static final long serialVersionUID = 1L;
@@ -30,7 +33,7 @@ public class ArlListDataAttach extends EntityBase {
private Integer versione;
public ArlListDataAttach() {
super();
super(logger);
}
public String getCodAlis() {

View File

@@ -1,15 +1,13 @@
package it.integry.ems_model.entity;
import it.integry.ems_model.annotation.EntityChild;
import it.integry.ems_model.annotation.Master;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import it.integry.ems_model.types.OperationType;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.FK;
@PropertyReactive
@Table(ArlOfftAttach.ENTITY)
@@ -17,19 +15,21 @@ import it.integry.ems_model.annotation.FK;
public class ArlOfftAttach extends EntityBase {
public ArlOfftAttach() {
super();
super(logger);
}
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "arl_offt_attach";
@PK
@SqlField(value = "id_attach")
@SqlField(value = "id_attach", maxLength = 40, nullable = false)
private String idAttach;
@PK
@SqlField(value = "id_contratto")
@SqlField(value = "id_contratto", nullable = false)
private Long idContratto;
public String getIdAttach() {

View File

@@ -6,15 +6,19 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.util.Date;
import it.integry.ems_model.annotation.FK;
@PropertyReactive
@Table(ArlSchaccDoc.ENTITY)
@JsonTypeName(ArlSchaccDoc.ENTITY)
public class ArlSchaccDoc extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "arl_schacc_doc";
private static final long serialVersionUID = 1L;
@@ -47,7 +51,7 @@ public class ArlSchaccDoc extends EntityBase {
private String serDoc;
public ArlSchaccDoc() {
super();
super(logger);
}
public String getIdScheda() {

View File

@@ -6,15 +6,19 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.util.Date;
import it.integry.ems_model.annotation.FK;
@PropertyReactive
@Table(ArlSchaccOrd.ENTITY)
@JsonTypeName(ArlSchaccOrd.ENTITY)
public class ArlSchaccOrd extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "arl_schacc_ord";
private static final long serialVersionUID = 1L;
@@ -40,7 +44,7 @@ public class ArlSchaccOrd extends EntityBase {
private Integer numOrd;
public ArlSchaccOrd() {
super();
super(logger);
}
public String getIdScheda() {

View File

@@ -6,17 +6,22 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import it.integry.ems_model.annotation.FK;
@PropertyReactive
@Table(AtbFabr.ENTITY)
@JsonTypeName(AtbFabr.ENTITY)
public class AtbFabr extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "atb_fabr";
private static final long serialVersionUID = 1L;
@@ -33,89 +38,89 @@ public class AtbFabr extends EntityBase {
@SqlField(value = "data_fab", nullable = false)
private Date dataFab;
@SqlField(value = "descrizione_com", maxLength = 40, nullable = true)
@SqlField(value = "descrizione_com", maxLength = 40)
private String descrizioneCom;
@SqlField(value = "cod_mart", maxLength = 15, nullable = true)
@SqlField(value = "cod_mart", maxLength = 15)
private String codMart;
@SqlField(value = "descrizione_art", maxLength = 4096, nullable = true)
@SqlField(value = "descrizione_art", maxLength = 4096)
private String descrizioneArt;
@SqlField(value = "qta_esistente", nullable = true)
@SqlField(value = "qta_esistente")
private BigDecimal qtaEsistente;
@SqlField(value = "qta_imp_cli", nullable = true)
@SqlField(value = "qta_imp_cli")
private BigDecimal qtaImpCli;
@SqlField(value = "qta_imp_lav", nullable = true)
@SqlField(value = "qta_imp_lav")
private BigDecimal qtaImpLav;
@SqlField(value = "qta_ord_for", nullable = true)
@SqlField(value = "qta_ord_for")
private BigDecimal qtaOrdFor;
@SqlField(value = "qta_accant", nullable = true)
@SqlField(value = "qta_accant")
private BigDecimal qtaAccant;
@SqlField(value = "descrizione_list", maxLength = 40, nullable = true)
@SqlField(value = "descrizione_list", maxLength = 40)
private String descrizioneList;
@SqlField(value = "cod_art_for", maxLength = 25, nullable = true)
@SqlField(value = "cod_art_for", maxLength = 25)
private String codArtFor;
@SqlField(value = "cod_forn", maxLength = 15, nullable = true)
@SqlField(value = "cod_forn", maxLength = 15)
private String codForn;
@SqlField(value = "cod_jcom", maxLength = 10, nullable = true)
@SqlField(value = "cod_jcom", maxLength = 10)
private String codJcom;
@SqlField(value = "cod_alis", maxLength = 5, nullable = true)
@SqlField(value = "cod_alis", maxLength = 5)
private String codAlis;
@SqlField(value = "rag_soc_forn", maxLength = 40, nullable = true)
@SqlField(value = "rag_soc_forn", maxLength = 40)
private String ragSocForn;
@SqlField(value = "tipo_azione", maxLength = 40, nullable = true)
@SqlField(value = "tipo_azione", maxLength = 40)
private String tipoAzione;
@SqlField(value = "fabbisogno", nullable = true)
@SqlField(value = "fabbisogno")
private BigDecimal fabbisogno;
@SqlField(value = "note", maxLength = 255, nullable = true)
@SqlField(value = "note", maxLength = 255)
private String note;
@SqlField(value = "unt_mis", maxLength = 3, nullable = true)
@SqlField(value = "unt_mis", maxLength = 3)
private String untMis;
@SqlField(value = "rap_conv", nullable = true)
@SqlField(value = "rap_conv")
private BigDecimal rapConv;
@SqlField(value = "qta_acq", nullable = true)
@SqlField(value = "qta_acq")
private BigDecimal qtaAcq;
@SqlField(value = "data_cons", nullable = true)
@SqlField(value = "data_cons")
private Date dataCons;
@SqlField(value = "cod_mdep", maxLength = 5, nullable = true)
@SqlField(value = "cod_mdep", maxLength = 5)
private String codMdep;
@SqlField(value = "flag_row_lock", maxLength = 1, nullable = false, defaultObjectValue = "N")
private String flagRowLock;
@SqlField(value = "num_ref_art_for", nullable = true)
@SqlField(value = "num_ref_art_for")
private Integer numRefArtFor;
@SqlField(value = "partita_mag", maxLength = 20, nullable = true)
@SqlField(value = "partita_mag", maxLength = 20)
private String partitaMag;
@SqlField(value = "cod_kit", maxLength = 15, nullable = true)
@SqlField(value = "cod_kit", maxLength = 15)
private String codKit;
@EntityChild
private List<AtbFabrDt> atbFabrDt;
private List<AtbFabrDt> atbFabrDt = new ArrayList<>();
public AtbFabr() {
super();
super(logger);
}
public Integer getIdRiga() {

View File

@@ -5,16 +5,20 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.Date;
import it.integry.ems_model.annotation.FK;
@PropertyReactive
@Table(AtbFabrDt.ENTITY)
@JsonTypeName(AtbFabrDt.ENTITY)
public class AtbFabrDt extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "atb_fabr_dt";
private static final long serialVersionUID = 1L;
@@ -35,19 +39,19 @@ public class AtbFabrDt extends EntityBase {
@SqlField(value = "data_fab", nullable = false)
private Date dataFab;
@SqlField(value = "cod_mart", maxLength = 15, nullable = true)
@SqlField(value = "cod_mart", maxLength = 15)
private String codMart;
@SqlField(value = "cod_anag", maxLength = 5, nullable = true)
@SqlField(value = "cod_anag", maxLength = 5)
private String codAnag;
@SqlField(value = "flag_tipo_riga", maxLength = 1, nullable = false)
private String flagTipoRiga;
@SqlField(value = "descrizione", maxLength = 4096, nullable = true)
@SqlField(value = "descrizione", maxLength = 4096)
private String descrizione;
@SqlField(value = "unt_mis", maxLength = 3, nullable = true)
@SqlField(value = "unt_mis", maxLength = 3)
private String untMis;
@SqlField(value = "qta_prod", nullable = false)
@@ -59,19 +63,19 @@ public class AtbFabrDt extends EntityBase {
@SqlField(value = "unt_mis_acq", maxLength = 3, nullable = false)
private String untMisAcq;
@SqlField(value = "data_cons", nullable = true)
@SqlField(value = "data_cons")
private Date dataCons;
@SqlField(value = "riferimento", maxLength = 255, nullable = true)
@SqlField(value = "riferimento", maxLength = 255)
private String riferimento;
@SqlField(value = "data_rif", nullable = true)
@SqlField(value = "data_rif")
private Date dataRif;
@SqlField(value = "num_rif", nullable = true)
@SqlField(value = "num_rif")
private Integer numRif;
public AtbFabrDt() {
super();
super(logger);
}
}

View File

@@ -3,7 +3,11 @@ package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.util.ArrayList;
import java.util.List;
@PropertyReactive
@@ -11,6 +15,8 @@ import java.util.List;
@JsonTypeName(AtbForn.ENTITY)
public class AtbForn extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "atb_forn";
private static final long serialVersionUID = 1L;
@@ -19,98 +25,98 @@ public class AtbForn extends EntityBase {
@SqlField(value = "cod_anag", maxLength = 5, nullable = false)
private String codAnag;
@SqlField(value = "cod_atip", maxLength = 5, nullable = true)
@SqlField(value = "cod_atip", maxLength = 5)
private String codAtip;
@SqlField(value = "cod_banc", maxLength = 5, nullable = true)
@SqlField(value = "cod_banc", maxLength = 5)
private String codBanc;
@SqlField(value = "cod_paga", maxLength = 5, nullable = true)
@SqlField(value = "cod_paga", maxLength = 5)
private String codPaga;
@SqlField(value = "porto", maxLength = 20, nullable = true)
@SqlField(value = "porto", maxLength = 20)
private String porto;
@SqlField(value = "mezzo", maxLength = 20, nullable = true)
@SqlField(value = "mezzo", maxLength = 20)
private String mezzo;
@SqlField(value = "cod_aliq", maxLength = 5, nullable = true)
@SqlField(value = "cod_aliq", maxLength = 5)
private String codAliq;
@SqlField(value = "cod_alis", maxLength = 5, nullable = true)
@SqlField(value = "cod_alis", maxLength = 5)
private String codAlis;
@SqlField(value = "cod_ccon_costi", maxLength = 6, nullable = true)
@SqlField(value = "cod_ccon_costi", maxLength = 6)
private String codCconCosti;
@SqlField(value = "cod_ccon_ricavi", maxLength = 6, nullable = true)
@SqlField(value = "cod_ccon_ricavi", maxLength = 6)
private String codCconRicavi;
@SqlField(value = "cod_abi", maxLength = 5, nullable = true)
@SqlField(value = "cod_abi", maxLength = 5)
private String codAbi;
@SqlField(value = "cod_cab", maxLength = 5, nullable = true)
@SqlField(value = "cod_cab", maxLength = 5)
private String codCab;
@SqlField(value = "agenzia_banca", maxLength = 80, nullable = true)
@SqlField(value = "agenzia_banca", maxLength = 80)
private String agenziaBanca;
@SqlField(value = "rif_banca_forn", maxLength = 80, nullable = true)
@SqlField(value = "rif_banca_forn", maxLength = 80)
private String rifBancaForn;
@SqlField(value = "flag_stato", maxLength = 1, nullable = false, defaultObjectValue = "A")
private String flagStato;
@SqlField(value = "causale", maxLength = 5, nullable = true)
@SqlField(value = "causale", maxLength = 5)
private String causale;
@SqlField(value = "cod_caus_rit", maxLength = 5, nullable = true)
@SqlField(value = "cod_caus_rit", maxLength = 5)
private String codCausRit;
@SqlField(value = "cod_divi", maxLength = 5, nullable = true)
@SqlField(value = "cod_divi", maxLength = 5)
private String codDivi;
@SqlField(value = "mm_decor", maxLength = 40, nullable = true)
@SqlField(value = "mm_decor", maxLength = 40)
private String mmDecor;
@SqlField(value = "cod_clie", maxLength = 15, nullable = true)
@SqlField(value = "cod_clie", maxLength = 15)
private String codClie;
@SqlField(value = "iban", maxLength = 40, nullable = true)
@SqlField(value = "iban", maxLength = 40)
private String iban;
@SqlField(value = "cod_banc_azi", maxLength = 5, nullable = true)
@SqlField(value = "cod_banc_azi", maxLength = 5)
private String codBancAzi;
@SqlField(value = "note_ordine", maxLength = 255, nullable = true)
@SqlField(value = "note_ordine", maxLength = 255)
private String noteOrdine;
@SqlField(value = "gg_chiudi_stralci", nullable = false, defaultObjectValue = "0")
private int ggChiudiStralci;
@SqlField(value = "cod_bic", maxLength = 40, nullable = true)
@SqlField(value = "cod_bic", maxLength = 40)
private String codBic;
@SqlField(value = "mesi_esclusi", maxLength = 25, nullable = true)
@SqlField(value = "mesi_esclusi", maxLength = 25)
private String mesiEsclusi;
@SqlField(value = "cod_vvet", maxLength = 5, nullable = true)
@SqlField(value = "cod_vvet", maxLength = 5)
private String codVvet;
@SqlField(value = "flag_forfettario", maxLength = 1, nullable = true, defaultObjectValue = "N")
@SqlField(value = "flag_forfettario", maxLength = 1, defaultObjectValue = "N")
private String flagForfettario;
@SqlField(value = "flag_autofattura", maxLength = 1, nullable = true, defaultObjectValue = "N")
@SqlField(value = "flag_autofattura", maxLength = 1, defaultObjectValue = "N")
private String flagAutofattura;
@Priority(1)
private GtbAnag gtbAnag;
@EntityChild
private List<VtbDest> vtbDest;
private List<VtbDest> vtbDest = new ArrayList<>();
public AtbForn() {
super();
super(logger);
}
public String getCodAnag() {

View File

@@ -3,7 +3,11 @@ package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
@@ -14,6 +18,8 @@ import java.util.Objects;
@JsonTypeName(AtbGriglie.ENTITY)
public class AtbGriglie extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "atb_griglie";
private static final long serialVersionUID = 1L;
@@ -30,14 +36,14 @@ public class AtbGriglie extends EntityBase {
@SqlField(value = "data_validita", nullable = false)
private Date dataValidita;
@SqlField(value = "note", maxLength = 255, nullable = true)
@SqlField(value = "note", maxLength = 255)
private String note;
@EntityChild
private List<AtbGriglieArt> atbGriglieArt;
private List<AtbGriglieArt> atbGriglieArt = new ArrayList<>();
public AtbGriglie() {
super();
super(logger);
}
public String getCodMdep() {

View File

@@ -7,9 +7,11 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.util.Date;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -17,6 +19,8 @@ import it.integry.ems_model.annotation.FK;
@JsonTypeName(AtbGriglieArt.ENTITY)
public class AtbGriglieArt extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "atb_griglie_art";
private static final long serialVersionUID = 1L;
@@ -41,14 +45,14 @@ public class AtbGriglieArt extends EntityBase {
@SqlField(value = "cod_mart", maxLength = 15, nullable = false)
private String codMart;
@SqlField(value = "tipo_assortimento", maxLength = 40, nullable = true)
@SqlField(value = "tipo_assortimento", maxLength = 40)
private String tipoAssortimento;
@SqlField(value = "tipo_variazione", maxLength = 1, nullable = false, defaultObjectValue = "I")
private String tipoVariazione;
public AtbGriglieArt() {
super();
super(logger);
}
public String getCodMdep() {

View File

@@ -5,7 +5,10 @@ import com.fasterxml.jackson.annotation.JsonValue;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import it.integry.ems_model.entity._enum.IBaseEnum;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
@@ -16,6 +19,8 @@ import java.util.List;
@JsonTypeName(AtbList.ENTITY)
public class AtbList extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "atb_list";
private static final long serialVersionUID = 1L;
@@ -30,22 +35,22 @@ public class AtbList extends EntityBase {
@SqlField(value = "cod_divi_acq", maxLength = 5, nullable = false)
private String codDiviAcq;
@SqlField(value = "tipo_azione", maxLength = 1, nullable = true)
@SqlField(value = "tipo_azione", maxLength = 1)
private String tipoAzione;
@SqlField(value = "flag_attivo", maxLength = 1, nullable = false, defaultObjectValue = "S")
private String flagAttivo;
@SqlField(value = "diacod", maxLength = 15, nullable = true)
@SqlField(value = "diacod", maxLength = 15)
private String diacod;
@SqlField(value = "part_iva_forn", maxLength = 20, nullable = true)
@SqlField(value = "part_iva_forn", maxLength = 20)
private String partIvaForn;
@SqlField(value = "expression_costo", maxLength = 1024, nullable = false, defaultObjectValue = "PREZZO - SCONTI")
private String expressionCosto;
@SqlField(value = "rag_soc_forn", maxLength = 40, nullable = true)
@SqlField(value = "rag_soc_forn", maxLength = 40)
private String ragSocForn;
@SqlField(value = "flag_escludi_sabato", maxLength = 1, nullable = false, defaultObjectValue = "N")
@@ -63,17 +68,17 @@ public class AtbList extends EntityBase {
@SqlField(value = "flag_prz_base_lisv", maxLength = 1, nullable = false, defaultObjectValue = "C")
private String flagPrzBaseLisv;
@SqlField(value = "valore_min_ord", nullable = true)
@SqlField(value = "valore_min_ord")
private BigDecimal valoreMinOrd;
@SqlField(value = "tipo_calc_prz", nullable = false, defaultObjectValue = "0")
private Integer tipoCalcPrz;
@EntityChild
private List<MtbLisa> mtbLisa;
private List<MtbLisa> mtbLisa = new ArrayList<>();
public AtbList() {
super();
super(logger);
}
public String getCodAlis() {

View File

@@ -6,7 +6,10 @@ import it.integry.ems.rules.completing.PurchasesRules;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import it.integry.ems_model.types.OperationType;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
@@ -19,6 +22,8 @@ import java.util.Objects;
@JsonTypeName(AtbListData.ENTITY)
public class AtbListData extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "atb_list_data";
private static final long serialVersionUID = 1L;
@@ -34,67 +39,67 @@ public class AtbListData extends EntityBase {
@SqlField(value = "data_iniz", nullable = false, format = CommonConstants.SYSDATE)
private Date dataIniz;
@SqlField(value = "data_iniz_sell_out", nullable = true, format = CommonConstants.SYSDATE)
@SqlField(value = "data_iniz_sell_out", format = CommonConstants.SYSDATE)
private Date dataInizSellOut;
@SqlField(value = "data_fine", nullable = true, format = CommonConstants.SYSDATE)
@SqlField(value = "data_fine", format = CommonConstants.SYSDATE)
private Date dataFine;
@SqlField(value = "data_fine_sell_out", nullable = true, format = CommonConstants.SYSDATE)
@SqlField(value = "data_fine_sell_out", format = CommonConstants.SYSDATE)
private Date dataFineSellOut;
@SqlField(value = "cod_divi_acq", maxLength = 5, nullable = false)
private String codDiviAcq;
@SqlField(value = "note", maxLength = 255, nullable = true)
@SqlField(value = "note", maxLength = 255)
private String note;
@SqlField(value = "cod_promo", maxLength = 10, nullable = true)
@SqlField(value = "cod_promo", maxLength = 10)
private String codPromo;
@SqlField(value = "data_ins", nullable = true, defaultObjectValue = CommonConstants.TIMESTAMP)
@SqlField(value = "data_ins", defaultObjectValue = CommonConstants.TIMESTAMP)
private Date dataIns;
@SqlField(value = "inserito_da", maxLength = 40, nullable = true)
@SqlField(value = "inserito_da", maxLength = 40)
private String inseritoDa;
@SqlField(value = "data_mod", nullable = true, defaultObjectValue = CommonConstants.TIMESTAMP)
@SqlField(value = "data_mod", defaultObjectValue = CommonConstants.TIMESTAMP)
private Date dataMod;
@SqlField(value = "modificato_da", maxLength = 40, nullable = true)
@SqlField(value = "modificato_da", maxLength = 40)
private String modificatoDa;
@SqlField(value = "flag_tipo_promo", maxLength = 1, nullable = true)
@SqlField(value = "flag_tipo_promo", maxLength = 1)
private String flagTipoPromo;
@SqlField(value = "cod_vage", maxLength = 5, nullable = true)
@SqlField(value = "cod_vage", maxLength = 5)
private String codVage;
@SqlField(value = "cod_vvet", maxLength = 5, nullable = true)
@SqlField(value = "cod_vvet", maxLength = 5)
private String codVvet;
@SqlField(value = "costo_trasp", nullable = true)
@SqlField(value = "costo_trasp")
private BigDecimal costoTrasp;
// //////////
// NON MODIFICARE L'ORDINE DEI SEGUENTI CAMPI LEGATI DA FK
@EntityChild
private List<MtbLisaData> mtbLisaData;
private List<MtbLisaData> mtbLisaData = new ArrayList<>();
@EntityChild
private List<MtbLisaPromo> mtbLisaPromo;
private List<MtbLisaPromo> mtbLisaPromo = new ArrayList<>();
@EntityChild
private List<AtbPromoDepo> atbPromoDepo;
private List<AtbPromoDepo> atbPromoDepo = new ArrayList<>();
@EntityChild
private List<ArlListDataAttach> arlListDataAttach;
private List<ArlListDataAttach> arlListDataAttach = new ArrayList<>();
@EntityChild
private List<StbFilesAttached> stbFilesAttached;
private List<StbFilesAttached> stbFilesAttached = new ArrayList<>();
public AtbListData() {
super();
super(logger);
}
public String getCodAlis() {

View File

@@ -6,10 +6,12 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.Date;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -18,11 +20,13 @@ import it.integry.ems_model.annotation.FK;
public class AtbListImp extends EntityBase {
public AtbListImp() {
super();
super(logger);
}
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "atb_list_imp";
@PK
@@ -32,67 +36,67 @@ public class AtbListImp extends EntityBase {
@SqlField(value = "cod_mart")
private String codMart;
@SqlField(value = "cod_aliq", maxLength = 5, nullable = true)
@SqlField(value = "cod_aliq", maxLength = 5)
private String codAliq;
@SqlField(value = "cod_alis", maxLength = 5, nullable = true)
@SqlField(value = "cod_alis", maxLength = 5)
private String codAlis;
@SqlField(value = "cod_art_forn", maxLength = 15, nullable = true)
@SqlField(value = "cod_art_forn", maxLength = 15)
private String codArtForn;
@SqlField(value = "cod_mgrp", maxLength = 5, nullable = true)
@SqlField(value = "cod_mgrp", maxLength = 5)
private String codMgrp;
@SqlField(value = "cod_msgr", maxLength = 5, nullable = true)
@SqlField(value = "cod_msgr", maxLength = 5)
private String codMsgr;
@SqlField(value = "cod_mstp", maxLength = 5, nullable = true)
@SqlField(value = "cod_mstp", maxLength = 5)
private String codMstp;
@SqlField(value = "cod_mtip", maxLength = 5, nullable = true)
@SqlField(value = "cod_mtip", maxLength = 5)
private String codMtip;
@SqlField(value = "data_iniz", nullable = false)
private Date dataIniz;
@SqlField(value = "descrizione", maxLength = 4096, nullable = true)
@SqlField(value = "descrizione", maxLength = 4096)
private String descrizione;
@SqlField(value = "error_imp", maxLength = 255, nullable = true)
@SqlField(value = "error_imp", maxLength = 255)
private String errorImp;
@SqlField(value = "id_versione", maxLength = 20, nullable = false)
private String idVersione;
@SqlField(value = "perc_1", nullable = true)
@SqlField(value = "perc_1")
private BigDecimal perc1;
@SqlField(value = "perc_2", nullable = true)
@SqlField(value = "perc_2")
private BigDecimal perc2;
@SqlField(value = "perc_3", nullable = true)
@SqlField(value = "perc_3")
private BigDecimal perc3;
@SqlField(value = "perc_4", nullable = true)
@SqlField(value = "perc_4")
private BigDecimal perc4;
@SqlField(value = "peso_kg", nullable = true)
@SqlField(value = "peso_kg")
private BigDecimal pesoKg;
@SqlField(value = "pref_forn", maxLength = 5, nullable = true)
@SqlField(value = "pref_forn", maxLength = 5)
private String prefForn;
@SqlField(value = "prz_acq", nullable = true)
@SqlField(value = "prz_acq")
private BigDecimal przAcq;
@SqlField(value = "qta_conf", nullable = true)
@SqlField(value = "qta_conf")
private BigDecimal qtaConf;
@SqlField(value = "qta_min_ord", nullable = true)
@SqlField(value = "qta_min_ord")
private BigDecimal qtaMinOrd;
@SqlField(value = "unt_mis", maxLength = 3, nullable = true)
@SqlField(value = "unt_mis", maxLength = 3)
private String untMis;
public Integer getIdRiga() {

View File

@@ -6,10 +6,12 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.Date;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -18,84 +20,86 @@ import it.integry.ems_model.annotation.FK;
public class AtbListImpNoPref extends EntityBase {
public AtbListImpNoPref() {
super();
super(logger);
}
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "atb_list_imp_no_pref";
@PK
@SqlField(value = "id_riga", nullable = false)
private Integer idRiga;
@SqlField(value = "cod_mart", maxLength = 15, nullable = true)
@SqlField(value = "cod_mart", maxLength = 15)
private String codMart;
@SqlField(value = "cod_art_forn", maxLength = 25, nullable = true)
@SqlField(value = "cod_art_forn", maxLength = 25)
private String codArtForn;
@SqlField(value = "descrizione", maxLength = 4096, nullable = true)
@SqlField(value = "descrizione", maxLength = 4096)
private String descrizione;
@SqlField(value = "unt_mis", maxLength = 3, nullable = true)
@SqlField(value = "unt_mis", maxLength = 3)
private String untMis;
@SqlField(value = "peso_kg", nullable = true)
@SqlField(value = "peso_kg")
private BigDecimal pesoKg;
@SqlField(value = "qta_conf", nullable = true)
@SqlField(value = "qta_conf")
private BigDecimal qtaConf;
@SqlField(value = "cod_mgrp", maxLength = 5, nullable = true)
@SqlField(value = "cod_mgrp", maxLength = 5)
private String codMgrp;
@SqlField(value = "cod_msgr", maxLength = 5, nullable = true)
@SqlField(value = "cod_msgr", maxLength = 5)
private String codMsgr;
@SqlField(value = "cod_alis", maxLength = 5, nullable = true)
@SqlField(value = "cod_alis", maxLength = 5)
private String codAlis;
@SqlField(value = "prz_acq", nullable = true)
@SqlField(value = "prz_acq")
private BigDecimal przAcq;
@SqlField(value = "perc_1", nullable = true)
@SqlField(value = "perc_1")
private BigDecimal perc1;
@SqlField(value = "perc_2", nullable = true)
@SqlField(value = "perc_2")
private BigDecimal perc2;
@SqlField(value = "perc_3", nullable = true)
@SqlField(value = "perc_3")
private BigDecimal perc3;
@SqlField(value = "perc_4", nullable = true)
@SqlField(value = "perc_4")
private BigDecimal perc4;
@SqlField(value = "cod_aliq", maxLength = 5, nullable = true)
@SqlField(value = "cod_aliq", maxLength = 5)
private String codAliq;
@SqlField(value = "error_imp", maxLength = 255, nullable = true)
@SqlField(value = "error_imp", maxLength = 255)
private String errorImp;
@SqlField(value = "data_iniz", nullable = false)
private Date dataIniz;
@SqlField(value = "cod_mstp", maxLength = 5, nullable = true)
@SqlField(value = "cod_mstp", maxLength = 5)
private String codMstp;
@SqlField(value = "cod_mtip", maxLength = 5, nullable = true)
@SqlField(value = "cod_mtip", maxLength = 5)
private String codMtip;
@SqlField(value = "qta_min_ord", nullable = true)
@SqlField(value = "qta_min_ord")
private BigDecimal qtaMinOrd;
@SqlField(value = "flag_forn_pref", maxLength = 1, nullable = true)
@SqlField(value = "flag_forn_pref", maxLength = 1)
private String flagFornPref;
@SqlField(value = "cod_ccon_costi", maxLength = 6, nullable = true)
@SqlField(value = "cod_ccon_costi", maxLength = 6)
private String codCconCosti;
@SqlField(value = "cod_ccon_ricavi", maxLength = 6, nullable = true)
@SqlField(value = "cod_ccon_ricavi", maxLength = 6)
private String codCconRicavi;
@SqlField(value = "user_name", maxLength = 40, nullable = false)
@@ -113,25 +117,25 @@ public class AtbListImpNoPref extends EntityBase {
@SqlField(value = "flag_agg_qta_cnf", nullable = false)
private boolean flagAggQtaCnf;
@SqlField(value = "cod_mart_equi", maxLength = 15, nullable = true)
@SqlField(value = "cod_mart_equi", maxLength = 15)
private String codMartEqui;
@SqlField(value = "flag_qta_cnf_fissa", maxLength = 1, nullable = true)
@SqlField(value = "flag_qta_cnf_fissa", maxLength = 1)
private String flagQtaCnfFissa;
@SqlField(value = "flag_rap_conv_variabile", maxLength = 1, nullable = true)
@SqlField(value = "flag_rap_conv_variabile", maxLength = 1)
private String flagRapConvVariabile;
@SqlField(value = "unt_mis2", maxLength = 3, nullable = true)
@SqlField(value = "unt_mis2", maxLength = 3)
private String untMis2;
@SqlField(value = "flag_attiva_art", nullable = true)
@SqlField(value = "flag_attiva_art")
private boolean flagAttivaArt;
@SqlField(value = "note_listino", maxLength = 255, nullable = true)
@SqlField(value = "note_listino", maxLength = 255)
private String noteListino;
@SqlField(value = "qta_multipla_ordinabile", nullable = true)
@SqlField(value = "qta_multipla_ordinabile")
private BigDecimal qtaMultiplaOrdinabile;
public Integer getIdRiga() {

View File

@@ -6,10 +6,12 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.Date;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -17,6 +19,8 @@ import it.integry.ems_model.annotation.FK;
@JsonTypeName(AtbListLogImport.ENTITY)
public class AtbListLogImport extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "atb_list_log_import";
private static final long serialVersionUID = 1L;
@@ -41,50 +45,50 @@ public class AtbListLogImport extends EntityBase {
@SqlField(value = "tipo_import", maxLength = 40, nullable = false)
private String tipoImport;
@SqlField(value = "cod_alis", maxLength = 5, nullable = true)
@SqlField(value = "cod_alis", maxLength = 5)
private String codAlis;
@SqlField(value = "cod_art_for", maxLength = 25, nullable = true)
@SqlField(value = "cod_art_for", maxLength = 25)
private String codArtFor;
@SqlField(value = "cod_barre", maxLength = 40, nullable = true)
@SqlField(value = "cod_barre", maxLength = 40)
private String codBarre;
@SqlField(value = "colli_pedana", nullable = true)
@SqlField(value = "colli_pedana")
private BigDecimal colliPedana;
@SqlField(value = "data_iniz", nullable = true)
@SqlField(value = "data_iniz")
private Date dataIniz;
@SqlField(value = "descrizione", maxLength = 255, nullable = true)
@SqlField(value = "descrizione", maxLength = 255)
private String descrizione;
@SqlField(value = "prz_acq", nullable = true)
@SqlField(value = "prz_acq")
private BigDecimal przAcq;
@SqlField(value = "prz_ven_sug", nullable = true)
@SqlField(value = "prz_ven_sug")
private BigDecimal przVenSug;
@SqlField(value = "qta_cnf", nullable = true)
@SqlField(value = "qta_cnf")
private BigDecimal qtaCnf;
@SqlField(value = "tipo_variazione", maxLength = 1, nullable = true)
@SqlField(value = "tipo_variazione", maxLength = 1)
private String tipoVariazione;
@SqlField(value = "unt_mis_acq", maxLength = 3, nullable = true)
@SqlField(value = "unt_mis_acq", maxLength = 3)
private String untMisAcq;
@SqlField(value = "val_promo", nullable = true)
@SqlField(value = "val_promo")
private BigDecimal valPromo;
@SqlField(value = "count_art_for", nullable = true)
@SqlField(value = "count_art_for")
private Integer countArtFor;
@SqlField(value = "data_iniz_lisa", nullable = true)
@SqlField(value = "data_iniz_lisa")
private Date dataInizLisa;
public AtbListLogImport() {
super();
super(logger);
}
public Date getDataFile() {

View File

@@ -3,7 +3,10 @@ package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.Date;
@@ -13,11 +16,13 @@ import java.util.Date;
public class AtbOffr extends EntityBase {
public AtbOffr() {
super();
super(logger);
}
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "atb_offr";
@ImportFromParent
@@ -39,25 +44,25 @@ public class AtbOffr extends EntityBase {
@SqlField(value = "riga_off", nullable = false)
private Integer rigaOff;
@SqlField(value = "cod_art_forn", maxLength = 25, nullable = true)
@SqlField(value = "cod_art_forn", maxLength = 25)
private String codArtForn;
@SqlField(value = "cod_jcom", maxLength = 10, nullable = true)
@SqlField(value = "cod_jcom", maxLength = 10)
private String codJcom;
@SqlField(value = "cod_mart", maxLength = 15, nullable = true)
@SqlField(value = "cod_mart", maxLength = 15)
private String codMart;
@SqlField(value = "data_cons", nullable = true)
@SqlField(value = "data_cons")
private Date dataCons;
@SqlField(value = "descrizione", maxLength = 255, nullable = true)
@SqlField(value = "descrizione", maxLength = 255)
private String descrizione;
@SqlField(value = "descrizione_estesa", maxLength = 4096, nullable = true)
@SqlField(value = "descrizione_estesa", maxLength = 4096)
private String descrizioneEstesa;
@SqlField(value = "note", maxLength = 255, nullable = true)
@SqlField(value = "note", maxLength = 255)
private String note;
@SqlField(value = "qta_cnf", nullable = false)
@@ -66,7 +71,7 @@ public class AtbOffr extends EntityBase {
@SqlField(value = "qta_off", nullable = false, defaultObjectValue = "0")
private BigDecimal qtaOff;
@SqlField(value = "rap_conv", nullable = true, defaultObjectValue = "1")
@SqlField(value = "rap_conv", defaultObjectValue = "1")
private BigDecimal rapConv;
@SqlField(value = "sconto5", nullable = false, defaultObjectValue = "0")
@@ -84,7 +89,7 @@ public class AtbOffr extends EntityBase {
@SqlField(value = "stato_richiesta", nullable = false, defaultObjectValue = "0")
private Integer statoRichiesta;
@SqlField(value = "unt_mis", maxLength = 3, nullable = true, defaultObjectValue = "1")
@SqlField(value = "unt_mis", maxLength = 3, defaultObjectValue = "1")
private String untMis;
@SqlField(value = "val_unt", nullable = false, defaultObjectValue = "0")

View File

@@ -6,7 +6,11 @@ import it.integry.common.var.CommonConstants;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import it.integry.ems_model.entity._enum.IBaseEnum;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@@ -17,11 +21,13 @@ import java.util.List;
public class AtbOfft extends EntityBase {
public AtbOfft() {
super();
super(logger);
}
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "atb_offt";
@SqlField(value = "anno_off", nullable = false)
@@ -35,67 +41,67 @@ public class AtbOfft extends EntityBase {
@SqlField(value = "id_contratto", nullable = false)
private Long idContratto;
@SqlField(value = "cap", maxLength = 10, nullable = true)
@SqlField(value = "cap", maxLength = 10)
private String cap;
@SqlField(value = "citta", maxLength = 30, nullable = true)
@SqlField(value = "citta", maxLength = 30)
private String citta;
@SqlField(value = "cod_alis", maxLength = 5, nullable = true)
@SqlField(value = "cod_alis", maxLength = 5)
private String codAlis;
@SqlField(value = "cod_anag", maxLength = 5, nullable = true)
@SqlField(value = "cod_anag", maxLength = 5)
private String codAnag;
@SqlField(value = "cod_divi", maxLength = 5, nullable = true)
@SqlField(value = "cod_divi", maxLength = 5)
private String codDivi;
@SqlField(value = "cod_fisc", maxLength = 16, nullable = true)
@SqlField(value = "cod_fisc", maxLength = 16)
private String codFisc;
@SqlField(value = "compilato_da", maxLength = 40, nullable = true)
@SqlField(value = "compilato_da", maxLength = 40)
private String compilatoDa;
@SqlField(value = "data_off", nullable = true, format = CommonConstants.SYSDATE)
@SqlField(value = "data_off", format = CommonConstants.SYSDATE)
private Date dataOff;
@SqlField(value = "e_mail", maxLength = 255, nullable = true)
@SqlField(value = "e_mail", maxLength = 255)
private String eMail;
@SqlField(value = "fax", maxLength = 40, nullable = true)
@SqlField(value = "fax", maxLength = 40)
private String fax;
@SqlField(value = "indirizzo", maxLength = 80, nullable = true)
@SqlField(value = "indirizzo", maxLength = 80)
private String indirizzo;
@SqlField(value = "nazione", maxLength = 3, nullable = true)
@SqlField(value = "nazione", maxLength = 3)
private String nazione;
@SqlField(value = "note", maxLength = 255, nullable = true)
@SqlField(value = "note", maxLength = 255)
private String note;
@SqlField(value = "part_iva", maxLength = 20, nullable = true)
@SqlField(value = "part_iva", maxLength = 20)
private String partIva;
@SqlField(value = "persona_rif", maxLength = 40, nullable = true)
@SqlField(value = "persona_rif", maxLength = 40)
private String personaRif;
@SqlField(value = "prov", maxLength = 2, nullable = true)
@SqlField(value = "prov", maxLength = 2)
private String prov;
@SqlField(value = "rag_soc", maxLength = 40, nullable = true)
@SqlField(value = "rag_soc", maxLength = 40)
private String ragSoc;
@SqlField(value = "responsabile_acq", maxLength = 40, nullable = true)
@SqlField(value = "responsabile_acq", maxLength = 40)
private String responsabileAcq;
@SqlField(value = "rif_fabbisogno", maxLength = 80, nullable = true)
@SqlField(value = "rif_fabbisogno", maxLength = 80)
private String rifFabbisogno;
@SqlField(value = "rif_offerta", maxLength = 80, nullable = true)
@SqlField(value = "rif_offerta", maxLength = 80)
private String rifOfferta;
@SqlField(value = "telefono", maxLength = 40, nullable = true)
@SqlField(value = "telefono", maxLength = 40)
private String telefono;
@SqlField(value = "data_iniz")
@@ -104,13 +110,13 @@ public class AtbOfft extends EntityBase {
@SqlField(value = "data_fine")
private Date dataFine;
@SqlField(value = "cod_vage", maxLength = 5, nullable = true)
@SqlField(value = "cod_vage", maxLength = 5)
private String codVage;
@SqlField(value = "cod_vvet", maxLength = 5, nullable = true)
@SqlField(value = "cod_vvet", maxLength = 5)
private String codVvet;
@SqlField(value = "cod_mdep", maxLength = 5, nullable = true)
@SqlField(value = "cod_mdep", maxLength = 5)
private String codMdep;
@SqlField(value = "stato_offerta", nullable = false, defaultObjectValue = "0")
@@ -120,7 +126,7 @@ public class AtbOfft extends EntityBase {
private Boolean flagChiudiAScad;
@EntityChild
private List<AtbOffr> atbOffr;
private List<AtbOffr> atbOffr = new ArrayList<>();
public Integer getAnnoOff() {
return annoOff;

View File

@@ -3,7 +3,11 @@ package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@@ -14,11 +18,13 @@ import java.util.List;
public class AtbPianoLogistico extends EntityBase {
public AtbPianoLogistico() {
super();
super(logger);
}
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "atb_piano_logistico";
@Identity
@@ -35,9 +41,9 @@ public class AtbPianoLogistico extends EntityBase {
private Date dataValidita;
@EntityChild
private List<AtbPianoLogisticoDet> atbPianoLogisticoDet;
private List<AtbPianoLogisticoDet> atbPianoLogisticoDet = new ArrayList<>();
@SqlField(value = "note", maxLength = 255, nullable = true)
@SqlField(value = "note", maxLength = 255)
private String note;
public Long getIdPiano() {

View File

@@ -3,6 +3,8 @@ package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
@PropertyReactive
@@ -11,11 +13,13 @@ import org.kie.api.definition.type.PropertyReactive;
public class AtbPianoLogisticoDet extends EntityBase {
public AtbPianoLogisticoDet() {
super();
super(logger);
}
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "atb_piano_logistico_det";
@Identity
@@ -39,7 +43,7 @@ public class AtbPianoLogisticoDet extends EntityBase {
@SqlField(value = "id_piano", nullable = false)
private Long idPiano;
@SqlField(value = "note_consegna", maxLength = 255, nullable = true)
@SqlField(value = "note_consegna", maxLength = 255)
private String noteConsegna;
public Long getIdRiga() {

View File

@@ -5,14 +5,17 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import it.integry.ems_model.annotation.FK;
@PropertyReactive
@Table(AtbPromoDepo.ENTITY)
@JsonTypeName(AtbPromoDepo.ENTITY)
public class AtbPromoDepo extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "atb_promo_depo";
private static final long serialVersionUID = 1L;
@@ -30,7 +33,7 @@ public class AtbPromoDepo extends EntityBase {
private Integer versione;
public AtbPromoDepo() {
super();
super(logger);
}
public String getCodAlis() {

View File

@@ -6,8 +6,9 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -15,6 +16,8 @@ import it.integry.ems_model.annotation.FK;
@JsonTypeName(AtbProvenienza.ENTITY)
public class AtbProvenienza extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "atb_provenienza";
private static final long serialVersionUID = 1L;
@@ -23,20 +26,20 @@ public class AtbProvenienza extends EntityBase {
@SqlField(value = "id_provenienza", maxLength = 30, nullable = false)
private String idProvenienza;
@SqlField(value = "produttore", maxLength = 255, nullable = true)
@SqlField(value = "produttore", maxLength = 255)
private String produttore;
@SqlField(value = "provenienza", maxLength = 255, nullable = true)
@SqlField(value = "provenienza", maxLength = 255)
private String provenienza;
@SqlField(value = "cod_anag", maxLength = 5, nullable = true)
@SqlField(value = "cod_anag", maxLength = 5)
private String codAnag;
@SqlField(value = "cod_vdes", maxLength = 5, nullable = true)
@SqlField(value = "cod_vdes", maxLength = 5)
private String codVdes;
public AtbProvenienza() {
super();
super(logger);
}
public String getIdProvenienza() {

View File

@@ -3,7 +3,10 @@ package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.Date;
@@ -12,6 +15,8 @@ import java.util.Date;
@JsonTypeName(AtbSchedaAccr.ENTITY)
public class AtbSchedaAccr extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "atb_scheda_accr";
private static final long serialVersionUID = 1L;
@@ -28,28 +33,28 @@ public class AtbSchedaAccr extends EntityBase {
@SqlField(value = "id_riga", nullable = false)
private Integer idRiga;
@SqlField(value = "mediatore", maxLength = 40, nullable = true)
@SqlField(value = "mediatore", maxLength = 40)
private String mediatore;
@SqlField(value = "id_provenienza", maxLength = 30, nullable = true)
@SqlField(value = "id_provenienza", maxLength = 30)
private String idProvenienza;
@SqlField(value = "capi_n", nullable = true)
@SqlField(value = "capi_n")
private Integer capiN;
@SqlField(value = "capi_peso", nullable = true)
@SqlField(value = "capi_peso")
private BigDecimal capiPeso;
@SqlField(value = "cod_mart", maxLength = 15, nullable = true)
@SqlField(value = "cod_mart", maxLength = 15)
private String codMart;
@SqlField(value = "costo_med", nullable = true, defaultObjectValue = "0")
@SqlField(value = "costo_med", nullable = false, defaultObjectValue = "0")
private BigDecimal costoMed;
@SqlField(value = "costo_med2", nullable = false, defaultObjectValue = "0")
private BigDecimal costoMed2;
@SqlField(value = "costo_vivo", nullable = true, defaultObjectValue = "0")
@SqlField(value = "costo_vivo", nullable = false, defaultObjectValue = "0")
private BigDecimal costoVivo;
@SqlField(value = "flag_pagato", maxLength = 1, nullable = false, defaultObjectValue = "N")
@@ -64,31 +69,31 @@ public class AtbSchedaAccr extends EntityBase {
@SqlField(value = "flag_estero", maxLength = 1, nullable = false, defaultObjectValue = "N")
private String flagEstero;
@SqlField(value = "cod_anag_med")
@SqlField(value = "cod_anag_med", maxLength = 5)
private String codAnagMed;
@SqlField(value = "cod_anag_allev")
@SqlField(value = "cod_anag_allev", maxLength = 5)
private String codAnagAllev;
@SqlField(value = "cod_vdes_allev")
@SqlField(value = "cod_vdes_allev", maxLength = 5)
private String codVdesAllev;
@SqlField(value = "um_costo_med", maxLength = 3, nullable = true)
@SqlField(value = "um_costo_med", maxLength = 3)
private String umCostoMed;
@SqlField(value = "um2_costo_med", maxLength = 3, nullable = true)
@SqlField(value = "um2_costo_med", maxLength = 3)
private String um2CostoMed;
@SqlField(value = "cod_dtip", maxLength = 5, nullable = true)
@SqlField(value = "cod_dtip", maxLength = 5)
private String codDtip;
@SqlField(value = "ser_doc", maxLength = 2, nullable = true)
@SqlField(value = "ser_doc", maxLength = 2)
private String serDoc;
@SqlField(value = "num_doc", nullable = true)
@SqlField(value = "num_doc")
private Integer numDoc;
@SqlField(value = "cod_anag_cli", maxLength = 5, nullable = true)
@SqlField(value = "cod_anag_cli", maxLength = 5)
private String codAnagCli;
@SqlField(value = "flag_registrato", maxLength = 1, nullable = false, defaultObjectValue = "N")
@@ -97,14 +102,14 @@ public class AtbSchedaAccr extends EntityBase {
@SqlField(value = "flag_coop", maxLength = 1, nullable = false, defaultObjectValue = "N")
private String flagCoop;
@SqlField(value = "um_costo_vivo", maxLength = 3, nullable = true)
@SqlField(value = "um_costo_vivo", maxLength = 3)
private String umCostoVivo;
@Priority(1)
private AtbProvenienza atbProvenienza;
public AtbSchedaAccr() {
super();
super(logger);
}
public String getIdScheda() {

View File

@@ -3,8 +3,12 @@ package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@@ -14,6 +18,8 @@ import java.util.List;
@JsonTypeName(AtbSchedaAcct.ENTITY)
public class AtbSchedaAcct extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "atb_scheda_acct";
private static final long serialVersionUID = 1L;
@@ -25,43 +31,43 @@ public class AtbSchedaAcct extends EntityBase {
@SqlField(value = "data_scheda", nullable = false)
private Date dataScheda;
@SqlField(value = "trasportatore", maxLength = 40, nullable = true)
@SqlField(value = "trasportatore", maxLength = 40)
private String trasportatore;
@SqlField(value = "note", maxLength = 255, nullable = true)
@SqlField(value = "note", maxLength = 255)
private String note;
@SqlField(value = "peso_lordo", nullable = true)
@SqlField(value = "peso_lordo")
private BigDecimal pesoLordo;
@SqlField(value = "peso_netto", nullable = true)
@SqlField(value = "peso_netto")
private BigDecimal pesoNetto;
@SqlField(value = "tara", nullable = true)
@SqlField(value = "tara")
private BigDecimal tara;
@SqlField(value = "costo_trasp", nullable = true, defaultObjectValue = "0")
@SqlField(value = "costo_trasp", nullable = false, defaultObjectValue = "0")
private BigDecimal costoTrasp;
@SqlField(value = "costo_trasp2", nullable = false, defaultObjectValue = "0")
private BigDecimal costoTrasp2;
@SqlField(value = "annotazioni", maxLength = 1024, nullable = true)
@SqlField(value = "annotazioni", maxLength = 1024)
private String annotazioni;
@SqlField(value = "cod_anag_trasp")
@SqlField(value = "cod_anag_trasp", maxLength = 5)
private String codAnagTrasp;
@SqlField(value = "flag_registrato", defaultObjectValue = "N")
@SqlField(value = "flag_registrato", maxLength = 1, nullable = false, defaultObjectValue = "N")
private String flagRegistrato;
@SqlField(value = "um_costo_trasp", maxLength = 3, nullable = true)
@SqlField(value = "um_costo_trasp", maxLength = 3)
private String umCostoTrasp;
@SqlField(value = "um2_costo_trasp", maxLength = 3, nullable = true)
@SqlField(value = "um2_costo_trasp", maxLength = 3)
private String um2CostoTrasp;
@SqlField(value = "autista", maxLength = 40, nullable = true)
@SqlField(value = "autista", maxLength = 40)
private String autista;
@SqlField(value = "num_lotto", nullable = false, defaultObjectValue = "0")
@@ -74,10 +80,10 @@ public class AtbSchedaAcct extends EntityBase {
private BigDecimal costo2TraspTot;
@EntityChild
private List<AtbSchedaAccr> atbSchedaAccr;
private List<AtbSchedaAccr> atbSchedaAccr = new ArrayList<>();
public AtbSchedaAcct() {
super();
super(logger);
}
public String getIdScheda() {

View File

@@ -6,8 +6,9 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -15,6 +16,8 @@ import it.integry.ems_model.annotation.FK;
@JsonTypeName(AtbTipi.ENTITY)
public class AtbTipi extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "atb_tipi";
private static final long serialVersionUID = 1L;
@@ -27,7 +30,7 @@ public class AtbTipi extends EntityBase {
private String descrizione;
public AtbTipi() {
super();
super(logger);
}
public String getCodAtip() {

View File

@@ -10,6 +10,8 @@ import it.integry.ems_model.base.EntityBase;
import it.integry.ems_model.exception.DataConverterNotFoundException;
import it.integry.ems_model.types.ApplicationName;
import it.integry.ems_model.utility.UtilityDB;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
@@ -24,6 +26,8 @@ import java.util.HashMap;
@JsonTypeName(Azienda.ENTITY)
public class Azienda extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "azienda";
private static final long serialVersionUID = 1L;
@@ -32,196 +36,196 @@ public class Azienda extends EntityBase {
@SqlField(value = "nome_ditta", maxLength = 40, nullable = false)
private String nomeDitta;
@SqlField(value = "indirizzo", maxLength = 40, nullable = true)
@SqlField(value = "indirizzo", maxLength = 40)
private String indirizzo;
@SqlField(value = "cap", maxLength = 10, nullable = true)
@SqlField(value = "cap", maxLength = 10)
private String cap;
@SqlField(value = "citta", maxLength = 30, nullable = true)
@SqlField(value = "citta", maxLength = 30)
private String citta;
@SqlField(value = "prov", maxLength = 2, nullable = true)
@SqlField(value = "prov", maxLength = 2)
private String prov;
@SqlField(value = "part_iva", maxLength = 20, nullable = true)
@SqlField(value = "part_iva", maxLength = 20)
private String partIva;
@SqlField(value = "num_tel", maxLength = 40, nullable = true)
@SqlField(value = "num_tel", maxLength = 40)
private String numTel;
@SqlField(value = "num_fax", maxLength = 40, nullable = true)
@SqlField(value = "num_fax", maxLength = 40)
private String numFax;
@SqlField(value = "e_mail", maxLength = 40, nullable = true)
@SqlField(value = "e_mail", maxLength = 40)
private String eMail;
@SqlField(value = "anno_contab", nullable = true)
@SqlField(value = "anno_contab")
private Integer annoContab;
@SqlField(value = "anno_magaz", nullable = true)
@SqlField(value = "anno_magaz")
private Integer annoMagaz;
@SqlField(value = "anno_attuale", nullable = true)
@SqlField(value = "anno_attuale")
private Integer annoAttuale;
@SqlField(value = "ult_data_gio", nullable = true)
@SqlField(value = "ult_data_gio")
private Date ultDataGio;
@SqlField(value = "ult_num_gio", nullable = true)
@SqlField(value = "ult_num_gio")
private Integer ultNumGio;
@SqlField(value = "riba_r_soc1", maxLength = 30, nullable = true)
@SqlField(value = "riba_r_soc1", maxLength = 30)
private String ribaRSoc1;
@SqlField(value = "riba_r_soc2", maxLength = 30, nullable = true)
@SqlField(value = "riba_r_soc2", maxLength = 30)
private String ribaRSoc2;
@SqlField(value = "riba_r_soc_breve", maxLength = 20, nullable = true)
@SqlField(value = "riba_r_soc_breve", maxLength = 20)
private String ribaRSocBreve;
@SqlField(value = "data_iniz_msg", nullable = true)
@SqlField(value = "data_iniz_msg")
private Date dataInizMsg;
@SqlField(value = "data_fine_msg", nullable = true)
@SqlField(value = "data_fine_msg")
private Date dataFineMsg;
@SqlField(value = "messaggio_doc", maxLength = 130, nullable = true)
@SqlField(value = "messaggio_doc", maxLength = 130)
private String messaggioDoc;
@SqlField(value = "liquidazioni_iva", maxLength = 1, nullable = true)
@SqlField(value = "liquidazioni_iva", maxLength = 1)
private String liquidazioniIva;
@SqlField(value = "last_upg_db", nullable = true)
@SqlField(value = "last_upg_db")
private Date lastUpgDb;
@SqlField(value = "data_upd_sw", nullable = true)
@SqlField(value = "data_upd_sw", nullable = false)
private Date dataUpdSw;
@SqlField(value = "logo_file", maxLength = 128, nullable = true)
@SqlField(value = "logo_file", maxLength = 128)
private String logoFile;
@SqlField(value = "logo_b64", nullable = true)
@SqlField(value = "logo_b64")
private String logoB64;
@SqlField(value = "ult_dare_av", nullable = false)
private BigDecimal ultDareAv;
@SqlField(value = "soll_top", nullable = true)
@SqlField(value = "soll_top")
private Integer sollTop;
@SqlField(value = "soll_left", nullable = true)
@SqlField(value = "soll_left")
private Integer sollLeft;
@SqlField(value = "gg_utili", nullable = true)
@SqlField(value = "gg_utili")
private Integer ggUtili;
@SqlField(value = "cod_sia", maxLength = 5, nullable = true)
@SqlField(value = "cod_sia", maxLength = 5)
private String codSia;
@SqlField(value = "flag_fatt_diff", maxLength = 1, nullable = false)
private String flagFattDiff;
@SqlField(value = "soll_head_personal", maxLength = 2, nullable = true)
@SqlField(value = "soll_head_personal", maxLength = 2)
private String sollHeadPersonal;
@SqlField(value = "last_upg_sp", maxLength = 40, nullable = true)
@SqlField(value = "last_upg_sp", maxLength = 40)
private String lastUpgSp;
@SqlField(value = "last_upg_db_menu", maxLength = 10, nullable = false)
@SqlField(value = "last_upg_db_menu", maxLength = 10)
private String lastUpgDbMenu;
@SqlField(value = "sito_web", maxLength = 255, nullable = true)
@SqlField(value = "sito_web", maxLength = 255)
private String sitoWeb;
@SqlField(value = "capitale_soc", nullable = true)
@SqlField(value = "capitale_soc")
private BigDecimal capitaleSoc;
@SqlField(value = "cciaa", maxLength = 20, nullable = true)
@SqlField(value = "cciaa", maxLength = 20)
private String cciaa;
@SqlField(value = "isc_reg_imp", maxLength = 20, nullable = true)
@SqlField(value = "isc_reg_imp", maxLength = 20)
private String iscRegImp;
@SqlField(value = "rag_soc_mod", maxLength = 255, nullable = true)
@SqlField(value = "rag_soc_mod", maxLength = 255)
private String ragSocMod;
@SqlField(value = "prefisso_ean", maxLength = 9, nullable = true)
@SqlField(value = "prefisso_ean", maxLength = 9)
private String prefissoEan;
@SqlField(value = "cod_fiscale", maxLength = 16, nullable = true)
@SqlField(value = "cod_fiscale", maxLength = 16)
private String codFiscale;
@SqlField(value = "pers_fisica_cognome", maxLength = 40, nullable = true)
@SqlField(value = "pers_fisica_cognome", maxLength = 40)
private String persFisicaCognome;
@SqlField(value = "pers_fisica_nome", maxLength = 40, nullable = true)
@SqlField(value = "pers_fisica_nome", maxLength = 40)
private String persFisicaNome;
@SqlField(value = "pers_fisica_sesso", maxLength = 1, nullable = true)
@SqlField(value = "pers_fisica_sesso", maxLength = 1)
private String persFisicaSesso;
@SqlField(value = "pers_fisica_data_nascita", nullable = true)
@SqlField(value = "pers_fisica_data_nascita")
private Date persFisicaDataNascita;
@SqlField(value = "pers_fisica_comune_nascita", maxLength = 30, nullable = true)
@SqlField(value = "pers_fisica_comune_nascita", maxLength = 30)
private String persFisicaComuneNascita;
@SqlField(value = "pers_fisica_prov_nascita", maxLength = 2, nullable = true)
@SqlField(value = "pers_fisica_prov_nascita", maxLength = 2)
private String persFisicaProvNascita;
@SqlField(value = "flag_pers_fisica", maxLength = 1, nullable = true, defaultObjectValue = "N")
@SqlField(value = "flag_pers_fisica", maxLength = 1, defaultObjectValue = "N")
private String flagPersFisica;
@SqlField(value = "pers_fisica_cod_fisc", maxLength = 16, nullable = true)
@SqlField(value = "pers_fisica_cod_fisc", maxLength = 16)
private String persFisicaCodFisc;
@SqlField(value = "rappr_legale_cod_fisc", maxLength = 16, nullable = true)
@SqlField(value = "rappr_legale_cod_fisc", maxLength = 16)
private String rapprLegaleCodFisc;
@SqlField(value = "sede_amm", maxLength = 80, nullable = true)
@SqlField(value = "sede_amm", maxLength = 80)
private String sedeAmm;
@SqlField(value = "flag_set_iva_omaggi", maxLength = 1, nullable = false, defaultObjectValue = "N")
private String flagSetIvaOmaggi;
@SqlField(value = "application_name", maxLength = 40, nullable = true)
@SqlField(value = "application_name", maxLength = 40)
private String applicationName;
@SqlField(value = "flag_tipo_fatturazione", maxLength = 1, nullable = true)
@SqlField(value = "flag_tipo_fatturazione", maxLength = 1)
private String flagTipoFatturazione;
@SqlField(value = "tribunale", maxLength = 10, nullable = true)
@SqlField(value = "tribunale", maxLength = 10)
private String tribunale;
@SqlField(value = "sett_ritardo_anno", nullable = true)
@SqlField(value = "sett_ritardo_anno")
private Integer settRitardoAnno;
@SqlField(value = "db_distributore", maxLength = 40, nullable = true)
@SqlField(value = "db_distributore", maxLength = 40)
private String dbDistributore;
@SqlField(value = "cod_ateco", maxLength = 10, nullable = true)
@SqlField(value = "cod_ateco", maxLength = 10)
private String codAteco;
@SqlField(value = "last_upg_qc", maxLength = 10, nullable = true)
@SqlField(value = "last_upg_qc", maxLength = 10)
private String lastUpgQc;
@SqlField(value = "tipo_azienda", maxLength = 40, nullable = false)
private String tipoAzienda;
@SqlField(value = "nazione", maxLength = 3, nullable = true)
@SqlField(value = "nazione", maxLength = 3)
private String nazione;
@SqlField(value = "cod_divi_contab", maxLength = 5, nullable = false)
private String codDiviContab;
@SqlField(value = "cod_iva_omaggi", maxLength = 5, nullable = true)
@SqlField(value = "cod_iva_omaggi", maxLength = 5)
private String codIvaOmaggi;
@SqlField(value = "cod_ccon_quadra", maxLength = 6, nullable = true)
@SqlField(value = "cod_ccon_quadra", maxLength = 6)
private String codCconQuadra;
@SqlField(value = "cod_ruop", maxLength = 40, nullable = true)
@SqlField(value = "cod_ruop", maxLength = 40)
private String codRuop;
@SqlField(value = "progressivo_sscc", nullable = false)
@@ -230,46 +234,46 @@ public class Azienda extends EntityBase {
/**
* Regime Fiscale
*/
@SqlField(value = "reg_fisc", maxLength = 4, nullable = true)
@SqlField(value = "reg_fisc", maxLength = 4)
private String regFisc;
@SqlField(value = "stato_liquidazione", maxLength = 2, nullable = true)
@SqlField(value = "stato_liquidazione", maxLength = 2)
private String statoLiquidazione;
/**
* Indirizzo PEC Sistema di Interscambio
*/
@SqlField(value = "email_sdi", maxLength = 50, nullable = true)
@SqlField(value = "email_sdi", maxLength = 50)
private String emailSdi;
/**
* Indirizzo PEC di invio mail verso lo SDI
*/
@SqlField(value = "from_email_sdi", maxLength = 255, nullable = true)
@SqlField(value = "from_email_sdi", maxLength = 255)
private String fromEmailSdi;
@SqlField(value = "id_creditore_sepa", maxLength = 255, nullable = true)
@SqlField(value = "id_creditore_sepa", maxLength = 255)
private String idCreditoreSepa;
@SqlField(value = "messaggio_privacy", maxLength = 8000, nullable = true)
@SqlField(value = "messaggio_privacy", maxLength = 8000)
private String messaggioPrivacy;
@SqlField(value = "rappr_legale_nome", maxLength = 40, nullable = true)
@SqlField(value = "rappr_legale_nome", maxLength = 40)
private String rapprLegaleNome;
@SqlField(value = "rappr_legale_cognome", maxLength = 40, nullable = true)
@SqlField(value = "rappr_legale_cognome", maxLength = 40)
private String rapprLegaleCognome;
@SqlField(value = "rappr_legale_sesso", maxLength = 1, nullable = true)
@SqlField(value = "rappr_legale_sesso", maxLength = 1)
private String rapprLegaleSesso;
@SqlField(value = "rappr_legale_comune_nascita", maxLength = 30, nullable = true)
@SqlField(value = "rappr_legale_comune_nascita", maxLength = 30)
private String rapprLegaleComuneNascita;
@SqlField(value = "rappr_legale_data_nascita", nullable = true)
@SqlField(value = "rappr_legale_data_nascita")
private Date rapprLegaleDataNascita;
@SqlField(value = "rappr_legale_prov_nascita", maxLength = 2, nullable = true)
@SqlField(value = "rappr_legale_prov_nascita", maxLength = 2)
private String rapprLegaleProvNascita;
@SqlField(value = "giorno_iniz_anno_fisc", nullable = false)
@@ -278,20 +282,19 @@ public class Azienda extends EntityBase {
@SqlField(value = "mese_iniz_anno_fisc", nullable = false)
private Integer meseInizAnnoFisc;
@SqlField(value = "flag_regime_speciale_iva", nullable = false, defaultObjectValue = "N")
@SqlField(value = "flag_regime_speciale_iva", maxLength = 1, nullable = false, defaultObjectValue = "N")
private String flagRegimeSpecialeIva;
@SqlField(value = "jwt_secret_key", maxLength = 8000, nullable = true)
@JsonIgnore
@SqlField(value = "jwt_secret_key", maxLength = -1)
private String jwtSecretKey;
public Azienda() {
super();
super(logger);
}
public static boolean isDbInfragruppo(Connection conn) throws SQLException {
return UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(conn,
"SELECT Cast(count(*) as bit) FROM aziende_gruppo");
return UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(conn, "SELECT Cast(count(*) as bit) FROM aziende_gruppo");
}
public static HashMap<String, Object> getDatiAzienda(Connection conn) throws SQLException {

View File

@@ -6,6 +6,8 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
@@ -16,14 +18,21 @@ import java.util.Date;
@Table(CarelliGiacenzaProg.ENTITY)
@JsonTypeName(CarelliGiacenzaProg.ENTITY)
public class CarelliGiacenzaProg extends EntityBase {
public CarelliGiacenzaProg() {
super();
super(logger);
}
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "carelli_giacenza_prog";
@PK
@SqlField(value = "cod_mart")
private String codMart;
@PK
@SqlField(value = "cod_mdep")
private String codMdep;
@@ -45,13 +54,10 @@ public class CarelliGiacenzaProg extends EntityBase {
@SqlField(value = "tipo_car")
private String tipoCar;
@SqlField(value = "id_inventario")
private Integer idInventario;
@Override
public void checkPreSave() throws Exception {}
public String getCodMart() {
return codMart;
}

View File

@@ -3,6 +3,8 @@ package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
@PropertyReactive
@@ -10,6 +12,8 @@ import org.kie.api.definition.type.PropertyReactive;
@JsonTypeName(CrlAmacArt.ENTITY)
public class CrlAmacArt extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "crl_amac_art";
private static final long serialVersionUID = 1L;
@@ -23,24 +27,28 @@ public class CrlAmacArt extends EntityBase {
@SqlField(value = "cod_cmac", maxLength = 20, nullable = false)
private String codCmac;
@SqlField(value = "cod_mgrp", maxLength = 5, nullable = true)
@SqlField(value = "cod_mgrp", maxLength = 5)
private String codMgrp;
@SqlField(value = "cod_msgr", maxLength = 5, nullable = true)
@SqlField(value = "cod_msgr", maxLength = 5)
private String codMsgr;
@SqlField(value = "cod_msfa", maxLength = 6, nullable = true)
@SqlField(value = "cod_msfa", maxLength = 6)
private String codMsfa;
@SqlField(value = "cod_mtip", maxLength = 5, nullable = true)
@SqlField(value = "cod_mtip", maxLength = 5)
private String codMtip;
@SqlField(value = "cod_mstp", maxLength = 5, nullable = true)
@SqlField(value = "cod_mstp", maxLength = 5)
private String codMstp;
@SqlField(value = "cod_mart", maxLength = 15, nullable = true)
@SqlField(value = "cod_mart", maxLength = 15)
private String codMart;
public CrlAmacArt() {
super(logger);
}
public Long getId() {
return id;
}

View File

@@ -5,14 +5,17 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import it.integry.ems_model.annotation.FK;
@PropertyReactive
@Table(CrlMovAttached.ENTITY)
@JsonTypeName(CrlMovAttached.ENTITY)
public class CrlMovAttached extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "crl_mov_attached";
private static final long serialVersionUID = 1L;
@@ -26,7 +29,7 @@ public class CrlMovAttached extends EntityBase {
private String idAttach;
public CrlMovAttached() {
super();
super(logger);
}
public Integer getNumCmov() {

View File

@@ -1,15 +1,14 @@
package it.integry.ems_model.entity;
import it.integry.ems_model.annotation.EntityChild;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.Master;
import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import it.integry.ems_model.types.OperationType;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -18,19 +17,21 @@ import it.integry.ems_model.annotation.FK;
public class CrlMovtRifCmov extends EntityBase {
public CrlMovtRifCmov() {
super();
super(logger);
}
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "crl_movt_rif_cmov";
@PK
@SqlField(value = "num_cmov")
@SqlField(value = "num_cmov", nullable = false)
private Integer numCmov;
@PK
@SqlField(value = "num_cmov_rif")
@SqlField(value = "num_cmov_rif", nullable = false)
private Integer numCmovRif;
public Integer getNumCmov() {

View File

@@ -1,10 +1,11 @@
package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import it.integry.ems_model.types.OperationType;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import com.fasterxml.jackson.annotation.JsonTypeName;
@Master
@PropertyReactive
@@ -14,46 +15,50 @@ public class CrlScadParr extends EntityBase {
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "crl_scad_parr";
@Unique
@SqlField(value = "anno_part")
@SqlField(value = "anno_part", nullable = false)
private Integer annoPart;
@Unique
@SqlField(value = "cod_anag")
@SqlField(value = "cod_anag", maxLength = 5, nullable = false)
private String codAnag;
@Identity
@PK
@SqlField(value = "id")
@SqlField(value = "id", nullable = false)
private Long id;
@Unique
@SqlField(value = "id_riga_mov")
@SqlField(value = "id_riga_mov", nullable = false)
private Integer idRigaMov;
@Unique
@ImportFromParent(value = "idRiga")
@SqlField(value = "id_riga_scad")
@SqlField(value = "id_riga_scad", nullable = false)
private Integer idRigaScad;
@Unique
@SqlField(value = "num_cmov")
@SqlField(value = "num_cmov", nullable = false)
private Integer numCmov;
@Unique
@SqlField(value = "num_doc")
@SqlField(value = "num_doc", nullable = false)
private Integer numDoc;
@Unique
@SqlField(value = "ser_doc")
@SqlField(value = "ser_doc", maxLength = 2, nullable = false)
private String serDoc;
@Unique
@SqlField(value = "tipo_anag")
@SqlField(value = "tipo_anag", maxLength = 1, nullable = false)
private String tipoAnag;
public CrlScadParr() {
super();
super(logger);
}
public Integer getAnnoPart() {

View File

@@ -6,9 +6,11 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -16,6 +18,8 @@ import it.integry.ems_model.annotation.FK;
@JsonTypeName(CtbAgbe.ENTITY)
public class CtbAgbe extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_agbe";
private static final long serialVersionUID = 1L;
@@ -24,14 +28,14 @@ public class CtbAgbe extends EntityBase {
@SqlField(value = "cod_agbe", maxLength = 5, nullable = false)
private String codAgbe;
@SqlField(value = "descrizione", maxLength = 80, nullable = true)
@SqlField(value = "descrizione", maxLength = 80)
private String descrizione;
@SqlField(value = "perc_agbe", nullable = true)
@SqlField(value = "perc_agbe")
private BigDecimal percAgbe;
public CtbAgbe() {
super();
super(logger);
}
public String getCodAgbe() {

View File

@@ -5,7 +5,11 @@ import com.fasterxml.jackson.annotation.JsonValue;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import it.integry.ems_model.entity._enum.IBaseEnum;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@@ -15,6 +19,8 @@ import java.util.List;
@JsonTypeName(CtbAmac.ENTITY)
public class CtbAmac extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_amac";
private static final long serialVersionUID = 1L;
@@ -23,47 +29,47 @@ public class CtbAmac extends EntityBase {
@SqlField(value = "cod_cmac", maxLength = 20, nullable = false)
private String codCmac;
@SqlField(value = "cod_bene", maxLength = 10, nullable = true)
@SqlField(value = "cod_bene", maxLength = 10)
private String codBene;
@SqlField(value = "cod_jfas", maxLength = 5, nullable = true)
@SqlField(value = "cod_jfas", maxLength = 5)
private String codJfas;
@SqlField(value = "data_alienazione", nullable = true)
@SqlField(value = "data_alienazione")
private Date dataAlienazione;
@SqlField(value = "data_iniz_uso", nullable = true)
@SqlField(value = "data_iniz_uso")
private Date dataInizUso;
@SqlField(value = "descrizione", maxLength = 255, nullable = false)
private String descrizione;
@SqlField(value = "data_fabbr", nullable = true)
@SqlField(value = "data_fabbr")
private Date dataFabbr;
@SqlField(value = "cod_mart", maxLength = 15, nullable = true)
@SqlField(value = "cod_mart", maxLength = 15)
private String codMart;
@SqlField(value = "partita_mag", maxLength = 20, nullable = true)
@SqlField(value = "partita_mag", maxLength = 20)
private String partitaMag;
@SqlField(value = "unt_mis_produzione", maxLength = 3, nullable = true)
@SqlField(value = "unt_mis_produzione", maxLength = 3)
private String untMisProduzione;
@SqlField(value = "machine_type", defaultObjectValue = "0")
@SqlField(value = "machine_type", nullable = false, defaultObjectValue = "0")
private Integer machineType;
@EntityChild
private List<CrlAmacArt> crlAmacArt;
private List<CrlAmacArt> crlAmacArt = new ArrayList<>();
@EntityChild
private List<CtbAmacHistory> ctbAmacHistory;
private List<CtbAmacHistory> ctbAmacHistory = new ArrayList<>();
@EntityChild
private List<CtbAmacManutenzioni> ctbAmacManutenzioni;
private List<CtbAmacManutenzioni> ctbAmacManutenzioni = new ArrayList<>();
public CtbAmac() {
super();
super(logger);
}
public String getCodCmac() {

View File

@@ -4,6 +4,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.common.var.CommonConstants;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.time.LocalDateTime;
@@ -16,11 +18,13 @@ import java.util.Date;
public class CtbAmacHistory extends EntityBase {
public CtbAmacHistory() {
super();
super(logger);
}
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_amac_history";
@Identity
@@ -34,25 +38,25 @@ public class CtbAmacHistory extends EntityBase {
@SqlField(value = "created_at", nullable = false, defaultObjectValue = CommonConstants.TIMESTAMP)
private LocalDateTime createdAt;
@SqlField(value = "data_ord", nullable = true)
@SqlField(value = "data_ord")
private Date dataOrd;
@SqlField(value = "event_description", maxLength = 8000, nullable = true)
@SqlField(value = "event_description", maxLength = 8000)
private String eventDescription;
@SqlField(value = "event_key", maxLength = 8000, nullable = false)
private String eventKey;
@SqlField(value = "gestione", maxLength = 1, nullable = true)
@SqlField(value = "gestione", maxLength = 1)
private String gestione;
@SqlField(value = "num_ord", nullable = true)
@SqlField(value = "num_ord")
private Integer numOrd;
@SqlField(value = "value", maxLength = 8000, nullable = false)
private String value;
@SqlField(value = "id_attach", maxLength = 40, nullable = true)
@SqlField(value = "id_attach", maxLength = 40)
private String idAttach;
public Long getId() {

View File

@@ -5,7 +5,10 @@ import com.fasterxml.jackson.annotation.JsonValue;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import it.integry.ems_model.entity._enum.IBaseEnum;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.util.Date;
@PropertyReactive
@@ -13,6 +16,8 @@ import java.util.Date;
@JsonTypeName(CtbAmacManutenzioni.ENTITY)
public class CtbAmacManutenzioni extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_amac_manutenzioni";
private static final long serialVersionUID = 1L;
@@ -54,7 +59,7 @@ public class CtbAmacManutenzioni extends EntityBase {
private Float oreLavoro;
public CtbAmacManutenzioni() {
super();
super(logger);
}
public String getCodCmac() {

View File

@@ -6,9 +6,11 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -16,6 +18,8 @@ import it.integry.ems_model.annotation.FK;
@JsonTypeName(CtbAnag.ENTITY)
public class CtbAnag extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_anag";
private static final long serialVersionUID = 1L;
@@ -32,7 +36,7 @@ public class CtbAnag extends EntityBase {
private BigDecimal saldoAtt;
public CtbAnag() {
super();
super(logger);
}
public String getCodAnag() {

View File

@@ -3,8 +3,12 @@ package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@@ -14,6 +18,8 @@ import java.util.List;
@JsonTypeName(CtbBeni.ENTITY)
public class CtbBeni extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_beni";
private static final long serialVersionUID = 1L;
@@ -22,7 +28,7 @@ public class CtbBeni extends EntityBase {
@SqlField(value = "cod_bene", maxLength = 10, nullable = false)
private String codBene;
@SqlField(value = "descrizione", maxLength = 1024, nullable = false)
@SqlField(value = "descrizione", maxLength = 1024)
private String descrizione;
@SqlField(value = "data_doc_acq", nullable = false)
@@ -43,7 +49,7 @@ public class CtbBeni extends EntityBase {
@SqlField(value = "flag_nuovo_usa", maxLength = 1, nullable = false)
private String flagNuovoUsa;
@SqlField(value = "data_iniz_amm", nullable = true)
@SqlField(value = "data_iniz_amm")
private Date dataInizAmm;
@SqlField(value = "aliq_amm_norm", nullable = false)
@@ -61,43 +67,43 @@ public class CtbBeni extends EntityBase {
@SqlField(value = "anni_amm_ant", nullable = false)
private Integer anniAmmAnt;
@SqlField(value = "data_doc_alie", nullable = true)
@SqlField(value = "data_doc_alie")
private Date dataDocAlie;
@SqlField(value = "cod_agbe", maxLength = 5, nullable = true)
@SqlField(value = "cod_agbe", maxLength = 5)
private String codAgbe;
@SqlField(value = "cod_catbene", maxLength = 5, nullable = false)
private String codCatbene;
@SqlField(value = "ser_doc_alie", maxLength = 1, nullable = true)
@SqlField(value = "ser_doc_alie", maxLength = 1)
private String serDocAlie;
@SqlField(value = "num_doc_alie", nullable = true)
@SqlField(value = "num_doc_alie")
private Integer numDocAlie;
@SqlField(value = "valore_alie", nullable = true)
@SqlField(value = "valore_alie")
private BigDecimal valoreAlie;
@SqlField(value = "num_beni", nullable = true)
@SqlField(value = "num_beni")
private Integer numBeni;
@SqlField(value = "cod_bene_rif", maxLength = 10, nullable = true)
@SqlField(value = "cod_bene_rif", maxLength = 10)
private String codBeneRif;
@SqlField(value = "descrizione_alien", maxLength = 80, nullable = true)
@SqlField(value = "descrizione_alien", maxLength = 80)
private String descrizioneAlien;
@SqlField(value = "perc_costo_deduc", nullable = false)
private BigDecimal percCostoDeduc;
@SqlField(value = "num_cmov_acq", nullable = true)
@SqlField(value = "num_cmov_acq")
private Integer numCmovAcq;
@SqlField(value = "cod_forn", maxLength = 5, nullable = true)
@SqlField(value = "cod_forn", maxLength = 5)
private String codForn;
@SqlField(value = "cod_jfas", maxLength = 5, nullable = true)
@SqlField(value = "cod_jfas", maxLength = 5)
private String codJfas;
@SqlField(value = "cod_divi_acq", maxLength = 5, nullable = false)
@@ -106,26 +112,26 @@ public class CtbBeni extends EntityBase {
@SqlField(value = "cambio_divi_acq", nullable = false)
private BigDecimal cambioDiviAcq;
@SqlField(value = "cod_divi_vend", maxLength = 5, nullable = true)
@SqlField(value = "cod_divi_vend", maxLength = 5)
private String codDiviVend;
@SqlField(value = "cambio_divi_vend", nullable = true)
@SqlField(value = "cambio_divi_vend")
private BigDecimal cambioDiviVend;
@SqlField(value = "note", maxLength = 255, nullable = true)
@SqlField(value = "note", maxLength = 255)
private String note;
@SqlField(value = "data_sosp_agbe", nullable = true)
@SqlField(value = "data_sosp_agbe")
private Date dataSospAgbe;
@EntityChild
private List<CtbVarbeni> ctbVarbeni;
private List<CtbVarbeni> ctbVarbeni = new ArrayList<>();
@EntityChild
private List<CtbFondi> ctbFondi;
private List<CtbFondi> ctbFondi = new ArrayList<>();
public CtbBeni() {
super();
super(logger);
}
public String getCodBene() {

View File

@@ -6,8 +6,9 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -15,6 +16,8 @@ import it.integry.ems_model.annotation.FK;
@JsonTypeName(CtbBiva.ENTITY)
public class CtbBiva extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_biva";
private static final long serialVersionUID = 1L;
@@ -30,7 +33,7 @@ public class CtbBiva extends EntityBase {
private String descrizione;
public CtbBiva() {
super();
super(logger);
}
public String getCodBiva() {

View File

@@ -6,9 +6,11 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -16,6 +18,8 @@ import it.integry.ems_model.annotation.FK;
@JsonTypeName(CtbCatbeni.ENTITY)
public class CtbCatbeni extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_catbeni";
private static final long serialVersionUID = 1L;
@@ -42,29 +46,29 @@ public class CtbCatbeni extends EntityBase {
@SqlField(value = "anni_amm_ant", nullable = false)
private Integer anniAmmAnt;
@SqlField(value = "conto_costo_ammord", maxLength = 6, nullable = true)
@SqlField(value = "conto_costo_ammord", maxLength = 6)
private String contoCostoAmmord;
@SqlField(value = "conto_costo_ammant", maxLength = 6, nullable = true)
@SqlField(value = "conto_costo_ammant", maxLength = 6)
private String contoCostoAmmant;
@SqlField(value = "conto_fondo_ammord", maxLength = 6, nullable = true)
@SqlField(value = "conto_fondo_ammord", maxLength = 6)
private String contoFondoAmmord;
@SqlField(value = "conto_fondo_ammant", maxLength = 6, nullable = true)
@SqlField(value = "conto_fondo_ammant", maxLength = 6)
private String contoFondoAmmant;
@SqlField(value = "conto_quota_inded", maxLength = 6, nullable = true)
@SqlField(value = "conto_quota_inded", maxLength = 6)
private String contoQuotaInded;
@SqlField(value = "conto_cespiti", maxLength = 6, nullable = true)
@SqlField(value = "conto_cespiti", maxLength = 6)
private String contoCespiti;
@SqlField(value = "flag_bene_imm", maxLength = 1, nullable = false, defaultObjectValue = "N")
private String flagBeneImm;
public CtbCatbeni() {
super();
super(logger);
}
public String getCodCatbene() {

View File

@@ -4,7 +4,11 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import it.integry.ems_model.types.OperationType;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.util.ArrayList;
import java.util.List;
@Master
@@ -13,6 +17,8 @@ import java.util.List;
@JsonTypeName(CtbCatg.ENTITY)
public class CtbCatg extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_catg";
private static final long serialVersionUID = 1L;
@@ -25,10 +31,10 @@ public class CtbCatg extends EntityBase {
private String descrizione;
@EntityChild
private List<CtbSctg> ctbSctg;
private List<CtbSctg> ctbSctg = new ArrayList<>();
public CtbCatg() {
super();
super(logger);
}
public String getCodCcat() {

View File

@@ -6,14 +6,17 @@ import it.integry.ems_model.annotation.SqlDetailId;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import it.integry.ems_model.annotation.FK;
@PropertyReactive
@Table(CtbCaur.ENTITY)
@JsonTypeName(CtbCaur.ENTITY)
public class CtbCaur extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_caur";
private static final long serialVersionUID = 1L;
@@ -27,13 +30,13 @@ public class CtbCaur extends EntityBase {
@SqlField(value = "riga", nullable = false)
private Integer riga;
@SqlField(value = "tipo_anag", maxLength = 1, nullable = true)
@SqlField(value = "tipo_anag", maxLength = 1)
private String tipoAnag;
@SqlField(value = "imp_dare", maxLength = 20, nullable = true)
@SqlField(value = "imp_dare", maxLength = 20)
private String impDare;
@SqlField(value = "imp_avere", maxLength = 20, nullable = true)
@SqlField(value = "imp_avere", maxLength = 20)
private String impAvere;
@SqlField(value = "flag_imposta_des_agg", maxLength = 1, nullable = false)
@@ -46,7 +49,7 @@ public class CtbCaur extends EntityBase {
private String codCcauRow;
public CtbCaur() {
super();
super(logger);
}
public String getCodCcau() {

View File

@@ -3,8 +3,12 @@ package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
@Master
@@ -13,6 +17,8 @@ import java.util.List;
@JsonTypeName(CtbCaus.ENTITY)
public class CtbCaus extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_caus";
private static final long serialVersionUID = 1L;
@@ -24,50 +30,50 @@ public class CtbCaus extends EntityBase {
@SqlField(value = "descrizione", maxLength = 40, nullable = false)
private String descrizione;
@SqlField(value = "tipo_anag", maxLength = 1, nullable = true)
@SqlField(value = "tipo_anag", maxLength = 1)
private String tipoAnag;
@SqlField(value = "cod_aliq_split", maxLength = 5, nullable = true)
@SqlField(value = "cod_aliq_split", maxLength = 5)
private String codAliqSplit;
@SqlField(value = "segno_ireg", nullable = true)
@SqlField(value = "segno_ireg")
private BigDecimal segnoIreg;
@SqlField(value = "flag_ap_ch", maxLength = 1, nullable = false, defaultObjectValue = "N")
private String flagApCh;
@SqlField(value = "flag_rit_acc", maxLength = 1, nullable = true, defaultObjectValue = "N")
@SqlField(value = "flag_rit_acc", maxLength = 1, defaultObjectValue = "N")
private String flagRitAcc;
@SqlField(value = "flag_acq_cespite", maxLength = 1, nullable = true, defaultObjectValue = "N")
@SqlField(value = "flag_acq_cespite", maxLength = 1, defaultObjectValue = "N")
private String flagAcqCespite;
@SqlField(value = "flag_rit_acc_paga", maxLength = 1, nullable = true, defaultObjectValue = "N")
@SqlField(value = "flag_rit_acc_paga", maxLength = 1, defaultObjectValue = "N")
private String flagRitAccPaga;
@SqlField(value = "azione_su_partita", nullable = true)
@SqlField(value = "azione_su_partita")
private Integer azioneSuPartita;
@SqlField(value = "cod_ireg", maxLength = 5, nullable = true)
@SqlField(value = "cod_ireg", maxLength = 5)
private String codIreg;
@SqlField(value = "cod_ccau_rif", maxLength = 5, nullable = true)
@SqlField(value = "cod_ccau_rif", maxLength = 5)
private String codCcauRif;
@SqlField(value = "cod_ccau_rc", maxLength = 5, nullable = true)
@SqlField(value = "cod_ccau_rc", maxLength = 5)
private String codCcauRc;
@SqlField(value = "cod_dtip_ccau", maxLength = 4, nullable = true)
@SqlField(value = "cod_dtip_ccau", maxLength = 4)
private String codDtipCcau;
@SqlField(value = "flag_stato", maxLength = 1, nullable = false, defaultObjectValue = "A")
private String flagStato;
@EntityChild
private List<CtbCaur> ctbCaur;
private List<CtbCaur> ctbCaur = new ArrayList<>();
public CtbCaus() {
super();
super(logger);
}
public String getCodCcau() {

View File

@@ -6,9 +6,11 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -16,6 +18,8 @@ import it.integry.ems_model.annotation.FK;
@JsonTypeName(CtbCausRit.ENTITY)
public class CtbCausRit extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_caus_rit";
private static final long serialVersionUID = 1L;
@@ -24,10 +28,10 @@ public class CtbCausRit extends EntityBase {
@SqlField(value = "cod_caus_rit", maxLength = 5, nullable = false)
private String codCausRit;
@SqlField(value = "descrizione", maxLength = 40, nullable = true)
@SqlField(value = "descrizione", maxLength = 40)
private String descrizione;
@SqlField(value = "descrizione_estesa", maxLength = 255, nullable = true)
@SqlField(value = "descrizione_estesa", maxLength = 255)
private String descrizioneEstesa;
@SqlField(value = "perc_imponibile_irpef", nullable = false)
@@ -42,23 +46,23 @@ public class CtbCausRit extends EntityBase {
@SqlField(value = "perc_inps", nullable = false)
private BigDecimal percInps;
@SqlField(value = "cod_tributo", maxLength = 5, nullable = true)
@SqlField(value = "cod_tributo", maxLength = 5)
private String codTributo;
@SqlField(value = "perc_cassa_prev", nullable = true)
@SqlField(value = "perc_cassa_prev")
private BigDecimal percCassaPrev;
@SqlField(value = "perc_inps_perc", nullable = true)
@SqlField(value = "perc_inps_perc")
private BigDecimal percInpsPerc;
@SqlField(value = "cod_modello", maxLength = 5, nullable = true)
@SqlField(value = "cod_modello", maxLength = 5)
private String codModello;
@SqlField(value = "causale", maxLength = 5, nullable = true)
@SqlField(value = "causale", maxLength = 5)
private String causale;
public CtbCausRit() {
super();
super(logger);
}
public String getCodCausRit() {

View File

@@ -6,9 +6,11 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -16,6 +18,8 @@ import it.integry.ems_model.annotation.FK;
@JsonTypeName(CtbCont.ENTITY)
public class CtbCont extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_cont";
private static final long serialVersionUID = 1L;
@@ -30,10 +34,10 @@ public class CtbCont extends EntityBase {
@SqlField(value = "cod_cgrp", maxLength = 6, nullable = false)
private String codCgrp;
@SqlField(value = "descrizione", maxLength = 80, nullable = true)
@SqlField(value = "descrizione", maxLength = 80)
private String descrizione;
@SqlField(value = "tipo_riep", maxLength = 25, nullable = true)
@SqlField(value = "tipo_riep", maxLength = 25)
private String tipoRiep;
@SqlField(value = "saldo_att", nullable = false, defaultObjectValue = "0")
@@ -42,13 +46,13 @@ public class CtbCont extends EntityBase {
@SqlField(value = "flag_cont_analit", maxLength = 1, nullable = false, defaultObjectValue = "N")
private String flagContAnalit;
@SqlField(value = "cod_biva", maxLength = 5, nullable = true)
@SqlField(value = "cod_biva", maxLength = 5)
private String codBiva;
@SqlField(value = "cod_jfas", maxLength = 5, nullable = true)
@SqlField(value = "cod_jfas", maxLength = 5)
private String codJfas;
@SqlField(value = "cod_csct", maxLength = 6, nullable = true)
@SqlField(value = "cod_csct", maxLength = 6)
private String codCsct;
@SqlField(value = "flag_risconto", maxLength = 1, nullable = false, defaultObjectValue = "N")
@@ -57,11 +61,11 @@ public class CtbCont extends EntityBase {
@SqlField(value = "perc_ded", nullable = false, defaultObjectValue = "0")
private BigDecimal percDed;
@SqlField(value = "diacod", maxLength = 40, nullable = true)
@SqlField(value = "diacod", maxLength = 40)
private String diacod;
public CtbCont() {
super();
super(logger);
}
public String getCodCcon() {

View File

@@ -5,15 +5,19 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import it.integry.ems_model.annotation.FK;
@PropertyReactive
@Table(CtbContFasi.ENTITY)
@JsonTypeName(CtbContFasi.ENTITY)
public class CtbContFasi extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_cont_fasi";
private static final long serialVersionUID = 1L;
@@ -26,11 +30,11 @@ public class CtbContFasi extends EntityBase {
@SqlField(value = "cod_jfas", maxLength = 5, nullable = false)
private String codJfas;
@SqlField(value = "perc_costo", nullable = true)
@SqlField(value = "perc_costo")
private BigDecimal percCosto;
public CtbContFasi() {
super();
super(logger);
}
public String getCodCcon() {

View File

@@ -3,6 +3,8 @@ package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
@Master
@@ -12,11 +14,13 @@ import org.kie.api.definition.type.PropertyReactive;
public class CtbContIntercodePaghe extends EntityBase {
public CtbContIntercodePaghe() {
super();
super(logger);
}
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_cont_intercode_paghe";
@PK
@@ -35,13 +39,13 @@ public class CtbContIntercodePaghe extends EntityBase {
@SqlField(value = "analitico", maxLength = 5, nullable = false)
String analitico;
@SqlField(value = "descriz_operazione", maxLength = 80, nullable = true)
@SqlField(value = "descriz_operazione", maxLength = 80)
String descrOp;
@SqlField(value = "cod_ccon", maxLength = 6, nullable = true)
@SqlField(value = "cod_ccon", maxLength = 6)
String codCcon;
@SqlField(value = "cod_ccon_cp", maxLength = 6, nullable = true)
@SqlField(value = "cod_ccon_cp", maxLength = 6)
String codCconCp;
@SqlField(value = "flag_escludi", nullable = false, defaultObjectValue = "0")

View File

@@ -6,10 +6,12 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.Date;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -17,6 +19,8 @@ import it.integry.ems_model.annotation.FK;
@JsonTypeName(CtbFondi.ENTITY)
public class CtbFondi extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_fondi";
private static final long serialVersionUID = 1L;
@@ -50,17 +54,17 @@ public class CtbFondi extends EntityBase {
@SqlField(value = "val_agbe", nullable = false)
private BigDecimal valAgbe;
@SqlField(value = "num_cmov", nullable = true)
@SqlField(value = "num_cmov")
private Integer numCmov;
@SqlField(value = "cod_divi_cont", maxLength = 5, nullable = true)
@SqlField(value = "cod_divi_cont", maxLength = 5)
private String codDiviCont;
@SqlField(value = "cambio_divi_cont", nullable = true)
@SqlField(value = "cambio_divi_cont")
private BigDecimal cambioDiviCont;
public CtbFondi() {
super();
super(logger);
}
public String getCodBene() {

View File

@@ -3,7 +3,11 @@ package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.util.ArrayList;
import java.util.List;
@Master
@@ -12,6 +16,8 @@ import java.util.List;
@JsonTypeName(CtbGrup.ENTITY)
public class CtbGrup extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_grup";
private static final long serialVersionUID = 1L;
@@ -20,20 +26,20 @@ public class CtbGrup extends EntityBase {
@SqlField(value = "cod_cgrp", maxLength = 6, nullable = false)
private String codCgrp;
@SqlField(value = "descrizione", maxLength = 255, nullable = true)
@SqlField(value = "descrizione", maxLength = 255)
private String descrizione;
@SqlField(value = "tipo", maxLength = 2, nullable = false)
private String tipo;
@SqlField(value = "sezione", maxLength = 2, nullable = true)
@SqlField(value = "sezione", maxLength = 2)
private String sezione;
@EntityChild
private List<CtbMast> mastList;
private List<CtbMast> mastList = new ArrayList<>();
public CtbGrup() {
super();
super(logger);
}
public String getCodCgrp() {

View File

@@ -5,16 +5,20 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.Date;
import it.integry.ems_model.annotation.FK;
@PropertyReactive
@Table(CtbIliq.ENTITY)
@JsonTypeName(CtbIliq.ENTITY)
public class CtbIliq extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_iliq";
private static final long serialVersionUID = 1L;
@@ -64,14 +68,14 @@ public class CtbIliq extends EntityBase {
@SqlField(value = "imp_altre_comp", nullable = false)
private String impAltreComp;
@SqlField(value = "descr_altre_comp", maxLength = 255, nullable = true)
@SqlField(value = "descr_altre_comp", maxLength = 255)
private String descrAltreComp;
@SqlField(value = "iva_debito", nullable = false)
@SqlField(value = "iva_debito")
private String ivaDebito;
public CtbIliq() {
super();
super(logger);
}
public Integer getAnno() {

View File

@@ -10,6 +10,9 @@ import it.integry.ems_model.base.EntityBase;
import org.kie.api.definition.type.PropertyReactive;
import java.util.Date;
import it.integry.ems_model.annotation.FK;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@Master
@PropertyReactive
@@ -17,6 +20,8 @@ import it.integry.ems_model.annotation.FK;
@JsonTypeName(CtbInum.ENTITY)
public class CtbInum extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_inum";
private static final long serialVersionUID = 1L;
@@ -46,7 +51,7 @@ public class CtbInum extends EntityBase {
private Integer ultNumPag;
public CtbInum() {
super();
super(logger);
}
public String getCodIreg() {

View File

@@ -6,6 +6,9 @@ import it.integry.ems_model.base.EntityBase;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.List;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@Master
@PropertyReactive
@@ -13,6 +16,8 @@ import java.util.List;
@JsonTypeName(CtbIreg.ENTITY)
public class CtbIreg extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_ireg";
private static final long serialVersionUID = 1L;
@@ -40,13 +45,13 @@ public class CtbIreg extends EntityBase {
private String flagIvaDaVentilare;
@EntityChild
private List<CtbInum> ctbInum;
private List<CtbInum> ctbInum = new ArrayList<>();
@EntityChild
private List<DtbInum> dtbInum;
private List<DtbInum> dtbInum = new ArrayList<>();
public CtbIreg() {
super();
super(logger);
}
public String getCodIreg() {

View File

@@ -8,6 +8,9 @@ import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.kie.api.definition.type.PropertyReactive;
import it.integry.ems_model.annotation.FK;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@Master
@PropertyReactive
@@ -15,6 +18,8 @@ import it.integry.ems_model.annotation.FK;
@JsonTypeName(CtbMast.ENTITY)
public class CtbMast extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_mast";
private static final long serialVersionUID = 1L;
@@ -26,11 +31,11 @@ public class CtbMast extends EntityBase {
@SqlField(value = "cod_cgrp", maxLength = 6, nullable = false)
private String codCgrp;
@SqlField(value = "descrizione", maxLength = 255, nullable = true)
@SqlField(value = "descrizione", maxLength = 255)
private String descrizione;
public CtbMast() {
super();
super(logger);
}
public String getCodCmas() {

View File

@@ -5,12 +5,17 @@ import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@PropertyReactive
@Table(CtbMovi.ENTITY)
@JsonTypeName(CtbMovi.ENTITY)
public class CtbMovi extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_movi";
private static final long serialVersionUID = 1L;
@@ -24,17 +29,17 @@ public class CtbMovi extends EntityBase {
@SqlField(value = "riga", nullable = false)
private Integer riga;
@SqlField(value = "cod_aliq", maxLength = 5, nullable = false)
@FK(tableName = "gtb_aliq")
@SqlField(value = "cod_aliq", maxLength = 5, nullable = false)
private String codAliq;
@SqlField(value = "cod_biva", maxLength = 5, nullable = true)
@SqlField(value = "cod_biva", maxLength = 5)
private String codBiva;
@SqlField(value = "cod_valuta", maxLength = 5, nullable = true)
@SqlField(value = "cod_valuta", maxLength = 5)
private String codValuta;
@SqlField(value = "val_valuta", nullable = true, defaultObjectValue = "0")
@SqlField(value = "val_valuta", defaultObjectValue = "0")
private BigDecimal valValuta;
@SqlField(value = "imponibile", nullable = false, defaultObjectValue = "0")
@@ -62,7 +67,7 @@ public class CtbMovi extends EntityBase {
private String flagMarcaDaBollo;
public CtbMovi() {
super();
super(logger);
}
public Integer getNumCmov() {

View File

@@ -9,6 +9,9 @@ import it.integry.ems_model.base.EntityBase;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import it.integry.ems_model.annotation.FK;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@Master
@PropertyReactive
@@ -17,18 +20,20 @@ import it.integry.ems_model.annotation.FK;
public class CtbMovn extends EntityBase {
public CtbMovn() {
super();
super(logger);
}
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_movn";
@PK
@SqlField(value = "anno")
@SqlField(value = "anno", nullable = false)
private Integer anno;
@SqlField(value = "numero")
@SqlField(value = "numero", nullable = false)
private Integer numero;
public Integer getAnno() {

View File

@@ -12,12 +12,16 @@ import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@PropertyReactive
@Table(CtbMovr.ENTITY)
@JsonTypeName(CtbMovr.ENTITY)
public class CtbMovr extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_movr";
private static final long serialVersionUID = 1L;
@@ -38,19 +42,19 @@ public class CtbMovr extends EntityBase {
@SqlField(value = "cod_ccon", maxLength = 6, nullable = false)
private String codCcon;
@SqlField(value = "tipo_anag", maxLength = 1, nullable = true)
@SqlField(value = "tipo_anag", maxLength = 1)
private String tipoAnag;
@SqlField(value = "cod_anag", maxLength = 5, nullable = true)
@SqlField(value = "cod_anag", maxLength = 5)
private String codAnag;
@SqlField(value = "anno_part", nullable = true)
@SqlField(value = "anno_part")
private Integer annoPart;
@SqlField(value = "ser_doc", maxLength = 2, nullable = true)
@SqlField(value = "ser_doc", maxLength = 2)
private String serDoc;
@SqlField(value = "num_doc", nullable = true)
@SqlField(value = "num_doc")
private Integer numDoc;
@FireRecalc
@@ -61,19 +65,19 @@ public class CtbMovr extends EntityBase {
@SqlField(value = "imp_avere", nullable = false, defaultObjectValue = "0")
private BigDecimal impAvere;
@SqlField(value = "des_agg", maxLength = 255, nullable = true)
@SqlField(value = "des_agg", maxLength = 255)
private String desAgg;
@SqlField(value = "cod_ccon_risconto", maxLength = 6, nullable = true)
@SqlField(value = "cod_ccon_risconto", maxLength = 6)
private String codCconRisconto;
@SqlField(value = "cod_ccau", maxLength = 5, nullable = false)
private String codCcau;
@SqlField(value = "cod_jcom", maxLength = 10, nullable = true)
@SqlField(value = "cod_jcom", maxLength = 10)
private String codJcom;
@SqlField(value = "cod_jfas", maxLength = 5, nullable = true)
@SqlField(value = "cod_jfas", maxLength = 5)
private String codJfas;
@ImportFromParent
@@ -84,10 +88,10 @@ public class CtbMovr extends EntityBase {
@SqlField(value = "cambio_divi_cont", nullable = false)
private BigDecimal cambioDiviCont;
@SqlField(value = "data_iniz_comp_risc", nullable = true)
@SqlField(value = "data_iniz_comp_risc")
private Date dataInizCompRisc;
@SqlField(value = "data_fine_comp_risc", nullable = true)
@SqlField(value = "data_fine_comp_risc")
private Date dataFineCompRisc;
@SqlField(value = "perc_ded", nullable = false, defaultObjectValue = "0")
@@ -112,10 +116,10 @@ public class CtbMovr extends EntityBase {
private Integer azioneSuPartita;
@EntityChild
private List<CtbMovrCoan> ctbMovrCoan;
private List<CtbMovrCoan> ctbMovrCoan = new ArrayList<>();
@EntityChild
private List<CtbParr> ctbParr;
private List<CtbParr> ctbParr = new ArrayList<>();
@Priority(1)
private CtbAnag ctbAnag;
@@ -124,7 +128,7 @@ public class CtbMovr extends EntityBase {
private List<CtbScad> ctbScad;
public CtbMovr() {
super();
super(logger);
}
public Integer getNumCmov() {
@@ -315,6 +319,7 @@ public class CtbMovr extends EntityBase {
this.percDed = percDed;
return this;
}
public Date getDataCmov() {
return dataCmov;
}

View File

@@ -5,12 +5,17 @@ import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@PropertyReactive
@Table(CtbMovrCoan.ENTITY)
@JsonTypeName(CtbMovrCoan.ENTITY)
public class CtbMovrCoan extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_movr_coan";
private static final long serialVersionUID = 1L;
@@ -28,10 +33,10 @@ public class CtbMovrCoan extends EntityBase {
@SqlField(value = "id_riga_coan", nullable = false)
private Integer idRigaCoan;
@SqlField(value = "cod_jcom", maxLength = 10, nullable = true)
@SqlField(value = "cod_jcom", maxLength = 10)
private String codJcom;
@SqlField(value = "cod_jfas", maxLength = 5, nullable = true)
@SqlField(value = "cod_jfas", maxLength = 5)
private String codJfas;
@SqlField(value = "imp_dare", nullable = false, defaultObjectValue = "0")
@@ -40,13 +45,13 @@ public class CtbMovrCoan extends EntityBase {
@SqlField(value = "imp_avere", nullable = false, defaultObjectValue = "0")
private BigDecimal impAvere;
@SqlField(value = "note", maxLength = 255, nullable = true)
@SqlField(value = "note", maxLength = 255)
private String note;
@SqlField(value = "cod_mtip", maxLength = 5, nullable = true)
@SqlField(value = "cod_mtip", maxLength = 5)
private String codMtip;
@SqlField(value = "matricola", maxLength = 20, nullable = true)
@SqlField(value = "matricola", maxLength = 20)
private String matricola;
@ImportFromParent
@@ -58,7 +63,7 @@ public class CtbMovrCoan extends EntityBase {
private BigDecimal cambioDiviCont;
public CtbMovrCoan() {
super();
super(logger);
}
public Integer getNumCmov() {

View File

@@ -23,6 +23,9 @@ import java.sql.SQLException;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@Master
@PropertyReactive
@@ -30,6 +33,8 @@ import java.util.Map;
@JsonTypeName(CtbMovt.ENTITY)
public class CtbMovt extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_movt";
private static final long serialVersionUID = 1L;
@@ -47,26 +52,26 @@ public class CtbMovt extends EntityBase {
@SqlField(value = "anno_comp", nullable = false)
private Integer annoComp;
@SqlField(value = "data_doc", nullable = true, format = CommonConstants.SYSDATE)
@SqlField(value = "data_doc", format = CommonConstants.SYSDATE)
private Date dataDoc;
@SqlField(value = "ser_doc", maxLength = 2, nullable = true, defaultObjectValue = "/")
@SqlField(value = "ser_doc", maxLength = 2, defaultObjectValue = "/")
private String serDoc;
@SqlField(value = "num_doc", nullable = true)
@SqlField(value = "num_doc")
private Integer numDoc;
@FK(tableName = "ctb_ireg")
@SqlField(value = "cod_ireg", maxLength = 5, nullable = true)
@SqlField(value = "cod_ireg", maxLength = 5)
private String codIreg;
@SqlField(value = "num_ireg", nullable = true, defaultObjectValue = "0")
@SqlField(value = "num_ireg", defaultObjectValue = "0")
private Integer numIreg;
@SqlField(value = "num_prot", nullable = true, defaultObjectValue = "0")
@SqlField(value = "num_prot", defaultObjectValue = "0")
private Integer numProt;
@SqlField(value = "tipo_anag", maxLength = 1, nullable = true)
@SqlField(value = "tipo_anag", maxLength = 1)
private String tipoAnag;
@SqlField(value = "stam_gio", maxLength = 1, nullable = false, defaultObjectValue = "N")
@@ -75,17 +80,17 @@ public class CtbMovt extends EntityBase {
@SqlField(value = "stam_iva", maxLength = 1, nullable = false, defaultObjectValue = "N")
private String stamIva;
@SqlField(value = "descrizione_caus", maxLength = 40, nullable = true)
@SqlField(value = "descrizione_caus", maxLength = 40)
private String descrizioneCaus;
@SqlField(value = "cod_anag", maxLength = 5, nullable = true)
@SqlField(value = "cod_anag", maxLength = 5)
private String codAnag;
@FK(tableName = "ctb_caus")
@SqlField(value = "cod_ccau", maxLength = 5, nullable = false)
private String codCcau;
@SqlField(value = "cod_jcom", maxLength = 10, nullable = true)
@SqlField(value = "cod_jcom", maxLength = 10)
private String codJcom;
@SqlField(value = "cod_divi_cont", maxLength = 5, nullable = false)
@@ -94,25 +99,25 @@ public class CtbMovt extends EntityBase {
@SqlField(value = "cambio_divi_cont", nullable = false)
private BigDecimal cambioDiviCont;
@SqlField(value = "inserito_da", maxLength = 40, nullable = true)
@SqlField(value = "inserito_da", maxLength = 40)
private String inseritoDa;
@SqlField(value = "data_ins", nullable = true, defaultObjectValue = CommonConstants.TIMESTAMP)
@SqlField(value = "data_ins", defaultObjectValue = CommonConstants.TIMESTAMP)
private Date dataIns;
@SqlField(value = "modificato_da", maxLength = 40, nullable = true)
@SqlField(value = "modificato_da", maxLength = 40)
private String modificatoDa;
@SqlField(value = "data_mod", nullable = true, defaultObjectValue = CommonConstants.TIMESTAMP)
@SqlField(value = "data_mod", defaultObjectValue = CommonConstants.TIMESTAMP)
private Date dataMod;
@SqlField(value = "data_ricezione", nullable = true, format = CommonConstants.TIMESTAMP)
@SqlField(value = "data_ricezione", format = CommonConstants.TIMESTAMP)
private Date dataRicezione;
@SqlField(value = "num_doc_forn", maxLength = 40, nullable = true)
@SqlField(value = "num_doc_forn", maxLength = 40)
private String numDocForn;
@SqlField(value = "data_comp_iva", nullable = true)
@SqlField(value = "data_comp_iva")
private Date dataCompIva;
@JsonProperty(value = "flag_scorporo")
@@ -173,14 +178,14 @@ public class CtbMovt extends EntityBase {
@EntityChild
@ReloadRow
private List<CtbMovr> ctbMovr;
private List<CtbMovr> ctbMovr = new ArrayList<>();
@EntityChild
@ReloadRow
private List<CtbMovi> ctbMovi;
private List<CtbMovi> ctbMovi = new ArrayList<>();
@EntityChild
private List<CrlMovAttached> crlMovAttached;
private List<CrlMovAttached> crlMovAttached = new ArrayList<>();
@Priority(value = 1, copyPk = false)
private CtbPart ctbPart;
@@ -201,7 +206,7 @@ public class CtbMovt extends EntityBase {
private GtbAnag gtbAnag;
public CtbMovt() {
super();
super(logger);
}
public Integer getNumCmov() {
@@ -854,13 +859,13 @@ public class CtbMovt extends EntityBase {
query = "SELECT DISTINCT cs.tipo_anag,\n" + " cs.cod_anag,\n" + " cs.anno_part,\n" + " cs.ser_doc,\n" + " cs.num_doc,\n" + " cs.id_riga\n" + "FROM ctb_movt\n" + " INNER JOIN ctb_caus ON ctb_movt.cod_ccau = ctb_caus.cod_ccau\n" + " INNER JOIN ctb_scad cs ON DatePart(Year, ctb_movt.data_doc) = cs.anno_part AND\n" + " ctb_movt.tipo_anag = cs.tipo_anag AND\n" + " ctb_movt.cod_anag = cs.cod_anag AND\n" + " ctb_movt.ser_doc = cs.ser_doc AND\n" + " ctb_movt.num_doc = cs.num_doc\n" + "WHERE ctb_movt.num_cmov = " + getNumCmov() + "\n" + " AND ctb_caus.azione_su_partita = 0";
List<CtbScad> del = new ResultSetMapper().mapQuerySetToList(connection, query, CtbScad.class, OperationType.DELETE);
if (del != null)
for ( CtbScad s: del)
s.manageWithParentConnection(connection, s.getOperation(), dataCompleting, entityHolder);
for (CtbScad s : del) s.manageWithParentConnection(connection, s.getOperation(), dataCompleting, entityHolder);
}
if (ctbPart == null) {
query = "SELECT cs.tipo_anag,\n" + " cs.cod_anag,\n" + " cs.anno_part,\n" + " cs.ser_doc,\n" + " cs.num_doc\n" + "FROM ctb_movt\n" + " INNER JOIN ctb_caus ON ctb_movt.cod_ccau = ctb_caus.cod_ccau\n" + " INNER JOIN ctb_part cs ON DatePart(Year, ctb_movt.data_doc) = cs.anno_part AND\n" + " ctb_movt.tipo_anag = cs.tipo_anag AND\n" + " ctb_movt.cod_anag = cs.cod_anag AND\n" + " ctb_movt.ser_doc = cs.ser_doc AND\n" + " ctb_movt.num_doc = cs.num_doc\n" + "WHERE ctb_movt.num_cmov = " + getNumCmov() + "\n" + " AND ctb_caus.azione_su_partita = 0";
ctbPart = new ResultSetMapper().mapQueryToObject(connection, query, CtbPart.class, OperationType.DELETE);
if (ctbPart != null) ctbPart.manageWithParentConnection(connection, ctbPart.getOperation(), dataCompleting, entityHolder);
if (ctbPart != null)
ctbPart.manageWithParentConnection(connection, ctbPart.getOperation(), dataCompleting, entityHolder);
}
}

View File

@@ -10,12 +10,17 @@ import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.List;
import it.integry.ems_model.annotation.FK;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@PropertyReactive
@Table(CtbNcIntracee.ENTITY)
@JsonTypeName(CtbNcIntracee.ENTITY)
public class CtbNcIntracee extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_nc_intracee";
private static final long serialVersionUID = 1L;
@@ -24,7 +29,7 @@ public class CtbNcIntracee extends EntityBase {
@SqlField(value = "cod_nc_intracee", maxLength = 20, nullable = false)
private String codNcIntracee;
@SqlField(value = "descrizione", maxLength = 255, nullable = true)
@SqlField(value = "descrizione", maxLength = 255)
private String descrizione;
/*@PK
@@ -40,29 +45,29 @@ public class CtbNcIntracee extends EntityBase {
@SqlField("num_prot")
private String numProt;*/
@SqlField(value = "cpa", maxLength = 5, nullable = true)
@SqlField(value = "cpa", maxLength = 5)
private String cpa;
@SqlField(value = "taric", maxLength = 5, nullable = true)
@SqlField(value = "taric", maxLength = 5)
private String taric;
@SqlField(value = "unt_mis_intracee", maxLength = 15, nullable = true)
@SqlField(value = "unt_mis_intracee", maxLength = 15)
private String untMisIntracee;
@SqlField(value = "sezione_dogana", maxLength = 6, nullable = true)
@SqlField(value = "sezione_dogana", maxLength = 6)
private String sezioneDogana;
@SqlField(value = "rap_conv_intracee", nullable = false, defaultObjectValue = "1")
@SqlField(value = "rap_conv_intracee", defaultObjectValue = "1")
private BigDecimal rapConvIntracee;
@SqlField(value = "descrizione_estera")
@SqlField(value = "descrizione_estera", maxLength = 255)
private String descrizioneEstera;
@EntityChild
private List<CtbNcIntraceer> ctbNcIntraceer;
private List<CtbNcIntraceer> ctbNcIntraceer = new ArrayList<>();
public CtbNcIntracee() {
super();
super(logger);
}
public String getCodNcIntracee() {

View File

@@ -7,12 +7,17 @@ import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.kie.api.definition.type.PropertyReactive;
import it.integry.ems_model.annotation.FK;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@PropertyReactive
@Table(CtbNcIntraceer.ENTITY)
@JsonTypeName(CtbNcIntraceer.ENTITY)
public class CtbNcIntraceer extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_nc_intraceer";
private static final long serialVersionUID = 1L;
@@ -25,14 +30,14 @@ public class CtbNcIntraceer extends EntityBase {
@SqlField(value = "sezione", nullable = false, defaultObjectValue = "0")
private Integer sezione;
@SqlField(value = "famiglia", maxLength = 255, nullable = true)
@SqlField(value = "famiglia", maxLength = 255)
private String famiglia;
@SqlField(value = "num_prot", maxLength = 15, nullable = true)
@SqlField(value = "num_prot", maxLength = 15)
private String numProt;
public CtbNcIntraceer() {
super();
super(logger);
}
public String getCodNcIntracee() {

View File

@@ -9,12 +9,17 @@ import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@PropertyReactive
@Table(CtbParr.ENTITY)
@JsonTypeName(CtbParr.ENTITY)
public class CtbParr extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_parr";
private static final long serialVersionUID = 1L;
@@ -69,7 +74,7 @@ public class CtbParr extends EntityBase {
private String codCcau;
@ImportFromParent
@SqlField(value = "des_agg", maxLength = 40, nullable = true)
@SqlField(value = "des_agg", maxLength = 40)
private String desAgg;
@ImportFromParent
@@ -94,7 +99,7 @@ public class CtbParr extends EntityBase {
private List<CtbScad> ctbScad;
public CtbParr() {
super();
super(logger);
}
public Integer getNumCmov() {

View File

@@ -8,6 +8,9 @@ import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@Master
@PropertyReactive
@@ -15,6 +18,8 @@ import java.util.List;
@JsonTypeName(CtbPart.ENTITY)
public class CtbPart extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_part";
private static final long serialVersionUID = 1L;
@@ -39,7 +44,7 @@ public class CtbPart extends EntityBase {
@SqlField(value = "num_doc", nullable = false)
private Integer numDoc;
@SqlField(value = "data_doc", nullable = true)
@SqlField(value = "data_doc")
private Date dataDoc;
@SqlField(value = "tot_imponib", nullable = false, defaultObjectValue = "0")
@@ -75,29 +80,29 @@ public class CtbPart extends EntityBase {
@SqlField(value = "cambio", nullable = false)
private BigDecimal cambio;
@SqlField(value = "flag_incagliato", maxLength = 1, nullable = true, defaultObjectValue = "N")
@SqlField(value = "flag_incagliato", maxLength = 1, defaultObjectValue = "N")
private String flagIncagliato;
@ImportFromParent
@SqlField(value = "cambio_divi_cont", nullable = false)
private BigDecimal cambioDiviCont;
@SqlField(value = "cod_abi", maxLength = 5, nullable = true)
@SqlField(value = "cod_abi", maxLength = 5)
private String codAbi;
@SqlField(value = "cod_cab", maxLength = 5, nullable = true)
@SqlField(value = "cod_cab", maxLength = 5)
private String codCab;
@SqlField(value = "cod_banc", maxLength = 5, nullable = true)
@SqlField(value = "cod_banc", maxLength = 5)
private String codBanc;
@SqlField(value = "cod_paga", maxLength = 5, nullable = true)
@SqlField(value = "cod_paga", maxLength = 5)
private String codPaga;
@SqlField(value = "cod_jcom", maxLength = 10, nullable = true)
@SqlField(value = "cod_jcom", maxLength = 10)
private String codJcom;
@SqlField(value = "recupero_crediti", maxLength = 5, nullable = true)
@SqlField(value = "recupero_crediti", maxLength = 5)
private String recuperoCrediti;
@SqlField(value = "cod_divi", maxLength = 5, nullable = false)
@@ -107,17 +112,17 @@ public class CtbPart extends EntityBase {
@SqlField(value = "cod_divi_cont", maxLength = 5, nullable = false)
private String codDiviCont;
@SqlField(value = "cod_vage", maxLength = 5, nullable = true)
@SqlField(value = "cod_vage", maxLength = 5)
private String codVage;
@SqlField(value = "flag_verificata", maxLength = 1, nullable = false, defaultObjectValue = "N")
private String flagVerificata;
@ImportFromParent
@SqlField(value = "num_doc_forn", maxLength = 40, nullable = true)
@SqlField(value = "num_doc_forn", maxLength = 40)
private String numDocForn;
@SqlField(value = "iban", maxLength = 40, nullable = true)
@SqlField(value = "iban", maxLength = 40)
private String iban;
@ImportFromParent
@@ -125,13 +130,13 @@ public class CtbPart extends EntityBase {
private String generaScad = "N";
@EntityChild
private List<CtbParr> ctbParr;
private List<CtbParr> ctbParr = new ArrayList<>();
@EntityChild
private List<CtbScad> ctbScad;
private List<CtbScad> ctbScad = new ArrayList<>();
public CtbPart() {
super();
super(logger);
}
public String getTipoAnag() {

View File

@@ -9,12 +9,17 @@ import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.Date;
import it.integry.ems_model.annotation.FK;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@PropertyReactive
@Table(CtbPlafondIva.ENTITY)
@JsonTypeName(CtbPlafondIva.ENTITY)
public class CtbPlafondIva extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_plafond_iva";
private static final long serialVersionUID = 1L;
@@ -44,13 +49,13 @@ public class CtbPlafondIva extends EntityBase {
@SqlField(value = "flag_dich_integrativa", nullable = false, defaultObjectValue = "0")
private Integer flagDichIntegrativa;
@SqlField(value = "num_prot_dich_rif", maxLength = 17, nullable = true)
@SqlField(value = "num_prot_dich_rif", maxLength = 17)
private String numProtDichRif;
@SqlField(value = "id_plafond_iva", nullable = false)
@SqlField(value = "id_plafond_iva")
private Integer idPlafondIva;
@SqlField(value = "num_prot", maxLength = 6, nullable = true)
@SqlField(value = "num_prot", maxLength = 6)
private String numProt;
@SqlField(value = "flag_acquisti", nullable = false, defaultObjectValue = "0")
@@ -59,13 +64,13 @@ public class CtbPlafondIva extends EntityBase {
@SqlField(value = "flag_importazioni", nullable = false, defaultObjectValue = "0")
private Integer flagImportazioni;
@SqlField(value = "descrizione_merce", maxLength = 100, nullable = true)
@SqlField(value = "descrizione_merce", maxLength = 100)
private String descrizioneMerce;
@SqlField(value = "num_prot_rif", maxLength = 6, nullable = true)
@SqlField(value = "num_prot_rif", maxLength = 6)
private String numProtRif;
@SqlField(value = "num_prot_clie_t", maxLength = 17, nullable = true)
@SqlField(value = "num_prot_clie_t", maxLength = 17)
private String numProtClieT;
@SqlField(value = "flag_dich_integrata", nullable = false, defaultObjectValue = "0")
@@ -74,11 +79,11 @@ public class CtbPlafondIva extends EntityBase {
@SqlField(value = "dogana", nullable = false, defaultObjectValue = "0")
private Integer dogana;
@SqlField(value = "data_ricevuta", nullable = true)
@SqlField(value = "data_ricevuta")
private Date dataRicevuta;
public CtbPlafondIva() {
super();
super(logger);
}
public Integer getAnno() {

View File

@@ -8,12 +8,17 @@ import it.integry.ems_model.base.EntityBase;
import org.kie.api.definition.type.PropertyReactive;
import java.util.Date;
import it.integry.ems_model.annotation.FK;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@PropertyReactive
@Table(CtbPlafondIvaT.ENTITY)
@JsonTypeName(CtbPlafondIvaT.ENTITY)
public class CtbPlafondIvaT extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_plafond_iva_t";
private static final long serialVersionUID = 1L;
@@ -26,10 +31,10 @@ public class CtbPlafondIvaT extends EntityBase {
@SqlField(value = "id_plafond_iva", nullable = false, defaultObjectValue = "0")
private Integer idPlafondIva;
@SqlField(value = "num_prot_dich", maxLength = 17, nullable = true)
@SqlField(value = "num_prot_dich", maxLength = 17)
private String numProtDich;
@SqlField(value = "data_invio", nullable = true)
@SqlField(value = "data_invio")
private Date dataInvio;
@SqlField(value = "tipo_plafond", nullable = false)
@@ -53,17 +58,17 @@ public class CtbPlafondIvaT extends EntityBase {
@SqlField(value = "flag_opz_straordinarie", nullable = false, defaultObjectValue = "0")
private Integer flagOpzStraordinarie;
@SqlField(value = "cod_fisc_intermediario", maxLength = 16, nullable = true)
@SqlField(value = "cod_fisc_intermediario", maxLength = 16)
private String codFiscIntermediario;
@SqlField(value = "data_impegno", nullable = true)
@SqlField(value = "data_impegno")
private Date dataImpegno;
@SqlField(value = "tipo_fornitore", maxLength = 2, nullable = true)
@SqlField(value = "tipo_fornitore", maxLength = 2)
private String tipoFornitore;
public CtbPlafondIvaT() {
super();
super(logger);
}
public Integer getAnno() {

View File

@@ -5,6 +5,9 @@ import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.kie.api.definition.type.PropertyReactive;
import java.util.List;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@Master
@PropertyReactive
@@ -12,6 +15,8 @@ import java.util.List;
@JsonTypeName(CtbRiclas.ENTITY)
public class CtbRiclas extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_riclas";
private static final long serialVersionUID = 1L;
@@ -24,16 +29,16 @@ public class CtbRiclas extends EntityBase {
private String descrizione;
@EntityChild
private List<CtbRiclasConti> ctbRiclasConti;
private List<CtbRiclasConti> ctbRiclasConti = new ArrayList<>();
@EntityChild
private List<CtbRiclasPdc> ctbRiclasPdc;
private List<CtbRiclasPdc> ctbRiclasPdc = new ArrayList<>();
@EntityChild
private List<CtbRiclasContiDet> ctbRiclasContiDet;
private List<CtbRiclasContiDet> ctbRiclasContiDet = new ArrayList<>();
public CtbRiclas() {
super();
super(logger);
}
public String getCodCriclas() {

View File

@@ -8,12 +8,17 @@ import it.integry.ems_model.base.EntityBase;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import it.integry.ems_model.annotation.FK;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@PropertyReactive
@Table(CtbRiclasConti.ENTITY)
@JsonTypeName(CtbRiclasConti.ENTITY)
public class CtbRiclasConti extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_riclas_conti";
private static final long serialVersionUID = 1L;
@@ -26,35 +31,35 @@ public class CtbRiclasConti extends EntityBase {
@SqlField(value = "cod_criclas", maxLength = 5, nullable = false)
private String codCriclas;
@SqlField(value = "cod_gruppo", maxLength = 40, nullable = true)
@SqlField(value = "cod_gruppo", maxLength = 40)
private String codGruppo;
@SqlField(value = "descrizione", maxLength = 128, nullable = true)
@SqlField(value = "descrizione", maxLength = 128)
private String descrizione;
@SqlField(value = "flag_tipo_riga", maxLength = 15, nullable = true)
@SqlField(value = "flag_tipo_riga", maxLength = 15)
private String flagTipoRiga;
@SqlField(value = "posizione", nullable = false)
private Integer posizione;
@SqlField(value = "saldo_anno", nullable = true)
@SqlField(value = "saldo_anno")
private BigDecimal saldoAnno;
@SqlField(value = "saldo_anno_prec", nullable = true)
@SqlField(value = "saldo_anno_prec")
private BigDecimal saldoAnnoPrec;
@SqlField(value = "saldo_periodo", nullable = true)
@SqlField(value = "saldo_periodo")
private BigDecimal saldoPeriodo;
@SqlField(value = "saldo_periodo_prec", nullable = true)
@SqlField(value = "saldo_periodo_prec")
private BigDecimal saldoPeriodoPrec;
@SqlField(value = "sezione", nullable = false, defaultObjectValue = "1")
private Integer sezione;
public CtbRiclasConti() {
super();
super(logger);
}
public String getCodCconRiclas() {

View File

@@ -8,12 +8,17 @@ import it.integry.ems_model.base.EntityBase;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import it.integry.ems_model.annotation.FK;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@PropertyReactive
@Table(CtbRiclasContiDet.ENTITY)
@JsonTypeName(CtbRiclasContiDet.ENTITY)
public class CtbRiclasContiDet extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_riclas_conti_det";
private static final long serialVersionUID = 1L;
@@ -30,32 +35,32 @@ public class CtbRiclasContiDet extends EntityBase {
@SqlField(value = "cod_criclas", maxLength = 5, nullable = false)
private String codCriclas;
@SqlField(value = "cod_gruppo", maxLength = 40, nullable = true)
@SqlField(value = "cod_gruppo", maxLength = 40)
private String codGruppo;
@SqlField(value = "descrizione", maxLength = 128, nullable = true)
@SqlField(value = "descrizione", maxLength = 128)
private String descrizione;
@SqlField(value = "flag_tipo_riga", maxLength = 15, nullable = true)
@SqlField(value = "flag_tipo_riga", maxLength = 15)
private String flagTipoRiga;
@SqlField(value = "posizione", nullable = false)
private Integer posizione;
@SqlField(value = "saldo_anno", nullable = true)
@SqlField(value = "saldo_anno")
private BigDecimal saldoAnno;
@SqlField(value = "saldo_anno_prec", nullable = true)
@SqlField(value = "saldo_anno_prec")
private BigDecimal saldoAnnoPrec;
@SqlField(value = "saldo_periodo", nullable = true)
@SqlField(value = "saldo_periodo")
private BigDecimal saldoPeriodo;
@SqlField(value = "saldo_periodo_prec", nullable = true)
@SqlField(value = "saldo_periodo_prec")
private BigDecimal saldoPeriodoPrec;
public CtbRiclasContiDet() {
super();
super(logger);
}
public String getCodCconPdc() {

View File

@@ -7,12 +7,17 @@ import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.kie.api.definition.type.PropertyReactive;
import it.integry.ems_model.annotation.FK;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@PropertyReactive
@Table(CtbRiclasPdc.ENTITY)
@JsonTypeName(CtbRiclasPdc.ENTITY)
public class CtbRiclasPdc extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_riclas_pdc";
private static final long serialVersionUID = 1L;
@@ -25,10 +30,10 @@ public class CtbRiclasPdc extends EntityBase {
@SqlField(value = "cod_criclas", maxLength = 5, nullable = false)
private String codCriclas;
@SqlField(value = "cod_ccon_riclas_avere", maxLength = 30, nullable = true)
@SqlField(value = "cod_ccon_riclas_avere", maxLength = 30)
private String codCconRiclasAvere;
@SqlField(value = "cod_ccon_riclas_dare", maxLength = 30, nullable = true)
@SqlField(value = "cod_ccon_riclas_dare", maxLength = 30)
private String codCconRiclasDare;
@SqlField(value = "segno_avere", nullable = false)
@@ -38,7 +43,7 @@ public class CtbRiclasPdc extends EntityBase {
private Integer segnoDare;
public CtbRiclasPdc() {
super();
super(logger);
}
public String getCodCcon() {

View File

@@ -6,6 +6,9 @@ import it.integry.ems_model.base.EntityBase;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.Date;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@Master
@PropertyReactive
@@ -14,11 +17,13 @@ import java.util.Date;
public class CtbRitAcc extends EntityBase {
public CtbRitAcc() {
super();
super(logger);
}
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_rit_acc";
@PK
@@ -43,10 +48,10 @@ public class CtbRitAcc extends EntityBase {
@SqlField(value = "cambio_divi_cont", nullable = false)
private BigDecimal cambioDiviCont;
@SqlField(value = "cassa_previdenza", nullable = true)
@SqlField(value = "cassa_previdenza")
private BigDecimal cassaPrevidenza;
@SqlField(value = "causale", maxLength = 5, nullable = true)
@SqlField(value = "causale", maxLength = 5)
private String causale;
@SqlField(value = "cod_caus_rit", maxLength = 5, nullable = false)
@@ -58,13 +63,13 @@ public class CtbRitAcc extends EntityBase {
@SqlField(value = "data_comp", nullable = false)
private Date dataComp;
@SqlField(value = "data_pagamento", nullable = true)
@SqlField(value = "data_pagamento")
private Date dataPagamento;
@SqlField(value = "data_vers_inps", nullable = true)
@SqlField(value = "data_vers_inps")
private Date dataVersInps;
@SqlField(value = "data_versam_irpef", nullable = true)
@SqlField(value = "data_versam_irpef")
private Date dataVersamIrpef;
@SqlField(value = "flag_stampato", maxLength = 1, nullable = false)
@@ -76,7 +81,7 @@ public class CtbRitAcc extends EntityBase {
@SqlField(value = "imponibile_irpef", nullable = false)
private BigDecimal imponibileIrpef;
@SqlField(value = "importo_enasarco", nullable = true, defaultObjectValue = "0")
@SqlField(value = "importo_enasarco", defaultObjectValue = "0")
private BigDecimal importoEnasarco;
@SqlField(value = "importo_inps", nullable = false)
@@ -100,40 +105,40 @@ public class CtbRitAcc extends EntityBase {
@SqlField(value = "importo_versato_inps", nullable = false)
private BigDecimal importoVersatoInps;
@SqlField(value = "inps_perc", nullable = true)
@SqlField(value = "inps_perc")
private BigDecimal inpsPerc;
@SqlField(value = "mod_vers", maxLength = 1, nullable = true)
@SqlField(value = "mod_vers", maxLength = 1)
private String modVers;
@SqlField(value = "modello", maxLength = 5, nullable = true)
@SqlField(value = "modello", maxLength = 5)
private String modello;
@SqlField(value = "num_cmov_fat", nullable = true)
@SqlField(value = "num_cmov_fat")
private Integer numCmovFat;
@SqlField(value = "num_cmov_paga", nullable = true)
@SqlField(value = "num_cmov_paga")
private Integer numCmovPaga;
@SqlField(value = "num_quietanza_irpef", maxLength = 20, nullable = true)
@SqlField(value = "num_quietanza_irpef", maxLength = 20)
private String numQuietanzaIrpef;
@SqlField(value = "perc_cassa_prev", nullable = true)
@SqlField(value = "perc_cassa_prev")
private BigDecimal percCassaPrev;
@SqlField(value = "perc_imponibile_inps", nullable = true)
@SqlField(value = "perc_imponibile_inps")
private BigDecimal percImponibileInps;
@SqlField(value = "perc_imponibile_irpef", nullable = true)
@SqlField(value = "perc_imponibile_irpef")
private BigDecimal percImponibileIrpef;
@SqlField(value = "perc_inps", nullable = true)
@SqlField(value = "perc_inps")
private BigDecimal percInps;
@SqlField(value = "perc_inps_perc", nullable = true)
@SqlField(value = "perc_inps_perc")
private BigDecimal percInpsPerc;
@SqlField(value = "perc_irpef", nullable = true)
@SqlField(value = "perc_irpef")
private BigDecimal percIrpef;
String generaScadenze;

View File

@@ -10,6 +10,9 @@ import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.Date;
import it.integry.ems_model.annotation.FK;
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@Master
@PropertyReactive
@@ -18,11 +21,13 @@ import it.integry.ems_model.annotation.FK;
public class CtbRitAccEnasarcoEl extends EntityBase {
public CtbRitAccEnasarcoEl() {
super();
super(logger);
}
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_rit_acc_enasarco_el";
@PK
@@ -49,10 +54,10 @@ public class CtbRitAccEnasarcoEl extends EntityBase {
@SqlField(value = "trim_comp", nullable = false)
private Integer trimComp;
@SqlField(value = "enasarco_imp", nullable = true)
@SqlField(value = "enasarco_imp")
private BigDecimal enasarcoImp;
@SqlField(value = "provv_pag", nullable = true)
@SqlField(value = "provv_pag")
private BigDecimal provvPag;
public Integer getAnnoComp() {

View File

@@ -1,9 +1,15 @@
package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.annotation.Master;
import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
@Master
@@ -12,6 +18,8 @@ import java.math.BigDecimal;
@JsonTypeName(CtbSana.ENTITY)
public class CtbSana extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_sana";
private static final long serialVersionUID = 1L;
@@ -44,7 +52,7 @@ public class CtbSana extends EntityBase {
private String codDiviCont;
public CtbSana() {
super();
super(logger);
}
public String getCodAnag() {

View File

@@ -5,7 +5,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.common.var.CommonConstants;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
@@ -16,6 +19,8 @@ import java.util.List;
@JsonTypeName(CtbScad.ENTITY)
public class CtbScad extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_scad";
private static final long serialVersionUID = 1L;
@@ -45,11 +50,11 @@ public class CtbScad extends EntityBase {
@SqlField(value = "num_doc", nullable = false)
private Integer numDoc;
@SqlField(value = "id_titolo", nullable = true)
@SqlField(value = "id_titolo")
private Integer idTitolo;
@ImportFromParent
@SqlField(value = "cod_paga", maxLength = 5, nullable = true)
@SqlField(value = "cod_paga", maxLength = 5)
private String codPaga;
@ImportFromParent
@@ -65,34 +70,34 @@ public class CtbScad extends EntityBase {
@SqlField(value = "imp_avere", nullable = false, defaultObjectValue = "0")
private BigDecimal impAvere;
@SqlField(value = "data_pag", nullable = true, format = CommonConstants.SYSDATE)
@SqlField(value = "data_pag", format = CommonConstants.SYSDATE)
private Date dataPag;
@SqlField(value = "descriz_pag", maxLength = 40, nullable = true)
@SqlField(value = "descriz_pag", maxLength = 40)
private String descrizPag;
@SqlField(value = "data_ult_soll", nullable = true)
@SqlField(value = "data_ult_soll")
private Date dataUltSoll;
@SqlField(value = "ult_soll", nullable = true)
@SqlField(value = "ult_soll")
private Integer ultSoll;
@SqlField(value = "note", maxLength = 40, nullable = true)
@SqlField(value = "note", maxLength = 40)
private String note;
@SqlField(value = "data_ant_provv", nullable = true, format = CommonConstants.SYSDATE)
@SqlField(value = "data_ant_provv", format = CommonConstants.SYSDATE)
private Date dataAntProvv;
@SqlField(value = "data_titolo", nullable = true, format = CommonConstants.SYSDATE)
@SqlField(value = "data_titolo", format = CommonConstants.SYSDATE)
private Date dataTitolo;
@SqlField(value = "gestione", maxLength = 1, nullable = true)
@SqlField(value = "gestione", maxLength = 1)
private String gestione;
@SqlField(value = "data_ord", nullable = true, format = CommonConstants.SYSDATE)
@SqlField(value = "data_ord", format = CommonConstants.SYSDATE)
private Date dataOrd;
@SqlField(value = "num_ord", nullable = true)
@SqlField(value = "num_ord")
private Integer numOrd;
@MapToTable(value = "tipo_partita")
@@ -114,13 +119,13 @@ public class CtbScad extends EntityBase {
private Boolean riaperta;
@EntityChild
private List<CrlScadParr> crlScadParr;
private List<CrlScadParr> crlScadParr = new ArrayList<>();
@Priority(value = 101, copyPk = false)
private List<CtbParr> ctbParr;
public CtbScad() {
super();
super(logger);
}
public Integer getIdRiga() {
@@ -397,8 +402,10 @@ public class CtbScad extends EntityBase {
protected void insertChilds() throws Exception {
if (getCrlScadParr() != null) {
for (CrlScadParr crlScadParr : getCrlScadParr()) {
if (crlScadParr.getIdRigaScad() == null) crlScadParr.setIdRigaScad(getIdRiga());
if (crlScadParr.getIdRigaMov() == null) crlScadParr.setIdRigaMov(getIdRigaMov());
if (crlScadParr.getIdRigaScad() == null)
crlScadParr.setIdRigaScad(getIdRiga());
if (crlScadParr.getIdRigaMov() == null)
crlScadParr.setIdRigaMov(getIdRigaMov());
crlScadParr.manageWithParentConnection(connection, crlScadParr.getOperation(), dataCompleting, entityHolder);
}
}

View File

@@ -1,16 +1,16 @@
package it.integry.ems_model.entity;
import it.integry.ems_model.annotation.EntityChild;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.Master;
import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import it.integry.ems_model.types.OperationType;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.math.BigDecimal;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -19,34 +19,36 @@ import it.integry.ems_model.annotation.FK;
public class CtbScon extends EntityBase {
public CtbScon() {
super();
super(logger);
}
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_scon";
@PK
@SqlField(value = "anno")
@SqlField(value = "anno", nullable = false)
private Integer anno;
@PK
@SqlField(value = "cod_ccon")
@SqlField(value = "cod_ccon", maxLength = 6, nullable = false)
private String codCcon;
@SqlField(value = "avere", defaultObjectValue = "0")
@SqlField(value = "avere", nullable = false, defaultObjectValue = "0")
private BigDecimal avere;
@SqlField(value = "cambio_divi_cont")
@SqlField(value = "cambio_divi_cont", nullable = false)
private BigDecimal cambioDiviCont;
@SqlField(value = "cod_divi_cont")
@SqlField(value = "cod_divi_cont", maxLength = 5, nullable = false)
private String codDiviCont;
@SqlField(value = "dare", defaultObjectValue = "0")
@SqlField(value = "dare", nullable = false, defaultObjectValue = "0")
private BigDecimal dare;
@SqlField(value = "saldo_iniz", defaultObjectValue = "0")
@SqlField(value = "saldo_iniz", nullable = false, defaultObjectValue = "0")
private BigDecimal saldoIniz;
public Integer getAnno() {

View File

@@ -5,14 +5,17 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import it.integry.ems_model.annotation.FK;
@PropertyReactive
@Table(CtbSctg.ENTITY)
@JsonTypeName(CtbSctg.ENTITY)
public class CtbSctg extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_sctg";
private static final long serialVersionUID = 1L;
@@ -28,7 +31,7 @@ public class CtbSctg extends EntityBase {
private String descrizione;
public CtbSctg() {
super();
super(logger);
}
public String getCodCsct() {

View File

@@ -6,14 +6,17 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import it.integry.ems_model.annotation.FK;
@PropertyReactive
@Table(CtbSolr.ENTITY)
@JsonTypeName(CtbSolr.ENTITY)
public class CtbSolr extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_solr";
private static final long serialVersionUID = 1L;
@@ -27,30 +30,30 @@ public class CtbSolr extends EntityBase {
private String codLingua;
@Clob
@SqlField(value = "lettera", nullable = true)
@SqlField(value = "lettera")
private String lettera;
@Clob
@SqlField(value = "footer", nullable = true)
@SqlField(value = "footer")
private String footer;
@Clob
@SqlField(value = "lettera_pro", nullable = true)
@SqlField(value = "lettera_pro")
private String letteraPro;
@Clob
@SqlField(value = "footer_pro", nullable = true)
@SqlField(value = "footer_pro")
private String footerPro;
@Clob
@SqlField(value = "titoli_scad", nullable = true)
@SqlField(value = "titoli_scad")
private String titoliScad;
@SqlField(value = "flag_incaglia_scad", maxLength = 1, nullable = false, defaultObjectValue = "N")
private String flagIncagliaScad;
public CtbSolr() {
super();
super(logger);
}
public Integer getNumSoll() {

View File

@@ -3,7 +3,11 @@ package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.util.ArrayList;
import java.util.List;
@Master
@@ -12,6 +16,8 @@ import java.util.List;
@JsonTypeName(CtbSolt.ENTITY)
public class CtbSolt extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_solt";
private static final long serialVersionUID = 1L;
@@ -24,10 +30,10 @@ public class CtbSolt extends EntityBase {
private Integer ggRitardo;
@EntityChild
private List<CtbSolr> ctbSolr;
private List<CtbSolr> ctbSolr = new ArrayList<>();
public CtbSolt() {
super();
super(logger);
}
public Integer getNumSoll() {

View File

@@ -6,8 +6,9 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -15,6 +16,8 @@ import it.integry.ems_model.annotation.FK;
@JsonTypeName(CtbTipoAzienda.ENTITY)
public class CtbTipoAzienda extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_tipo_azienda";
private static final long serialVersionUID = 1L;
@@ -23,11 +26,11 @@ public class CtbTipoAzienda extends EntityBase {
@SqlField(value = "tipo_azienda", maxLength = 5, nullable = false)
private String tipoAzienda;
@SqlField(value = "descrizione", maxLength = 80, nullable = true)
@SqlField(value = "descrizione", maxLength = 80)
private String descrizione;
public CtbTipoAzienda() {
super();
super(logger);
}
public String getTipoAzienda() {

View File

@@ -6,8 +6,9 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -15,6 +16,8 @@ import it.integry.ems_model.annotation.FK;
@JsonTypeName(CtbTipoRiep.ENTITY)
public class CtbTipoRiep extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_tipo_riep";
private static final long serialVersionUID = 1L;
@@ -23,14 +26,14 @@ public class CtbTipoRiep extends EntityBase {
@SqlField(value = "tipo_riep", maxLength = 25, nullable = false)
private String tipoRiep;
@SqlField(value = "tipo_anag", maxLength = 1, nullable = true)
@SqlField(value = "tipo_anag", maxLength = 1)
private String tipoAnag;
@SqlField(value = "consid_partita", maxLength = 1, nullable = false)
private String considPartita;
public CtbTipoRiep() {
super();
super(logger);
}
public String getTipoRiep() {

View File

@@ -3,8 +3,12 @@ package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@@ -14,6 +18,8 @@ import java.util.List;
@JsonTypeName(CtbTitoli.ENTITY)
public class CtbTitoli extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_titoli";
private static final long serialVersionUID = 1L;
@@ -26,7 +32,7 @@ public class CtbTitoli extends EntityBase {
@SqlField(value = "id_titolo", nullable = false)
private Integer idTitolo;
@SqlField(value = "descrizione", maxLength = 255, nullable = true)
@SqlField(value = "descrizione", maxLength = 255)
private String descrizione;
@SqlField(value = "data_titolo", nullable = false)
@@ -38,41 +44,41 @@ public class CtbTitoli extends EntityBase {
@SqlField(value = "importo_evaso", nullable = false)
private BigDecimal importoEvaso;
@SqlField(value = "data_ricezione", nullable = true)
@SqlField(value = "data_ricezione")
private Date dataRicezione;
@SqlField(value = "cod_banc", maxLength = 5, nullable = true)
@SqlField(value = "cod_banc", maxLength = 5)
private String codBanc;
@SqlField(value = "cod_abi", maxLength = 5, nullable = true)
@SqlField(value = "cod_abi", maxLength = 5)
private String codAbi;
@SqlField(value = "cod_paga", maxLength = 5, nullable = false)
private String codPaga;
@SqlField(value = "cod_cab", maxLength = 5, nullable = true)
@SqlField(value = "cod_cab", maxLength = 5)
private String codCab;
@SqlField(value = "note", maxLength = 255, nullable = true)
@SqlField(value = "note", maxLength = 255)
private String note;
@SqlField(value = "cod_vage", maxLength = 5, nullable = true)
@SqlField(value = "cod_vage", maxLength = 5)
private String codVage;
@SqlField(value = "flag_bloccaIncasso", maxLength = 1, nullable = false, defaultObjectValue = "N")
private String flagbloccaIncasso;
@SqlField(value = "num_cmov", nullable = true)
@SqlField(value = "num_cmov")
private Integer numCmov;
@EntityChild
private List<CtbScad> ctbScad;
private List<CtbScad> ctbScad = new ArrayList<>();
@EntityChild
private List<CtbTitoliDt> ctbTitoliDt;
private List<CtbTitoliDt> ctbTitoliDt = new ArrayList<>();
public CtbTitoli() {
super();
super(logger);
}
public String getCodAnag() {

View File

@@ -5,16 +5,20 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.Date;
import it.integry.ems_model.annotation.FK;
@PropertyReactive
@Table(CtbTitoliDt.ENTITY)
@JsonTypeName(CtbTitoliDt.ENTITY)
public class CtbTitoliDt extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_titoli_dt";
private static final long serialVersionUID = 1L;
@@ -49,7 +53,7 @@ public class CtbTitoliDt extends EntityBase {
private BigDecimal importoEvaso;
public CtbTitoliDt() {
super();
super(logger);
}
public String getCodAnag() {

View File

@@ -6,10 +6,12 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.Date;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -17,6 +19,8 @@ import it.integry.ems_model.annotation.FK;
@JsonTypeName(CtbVarbeni.ENTITY)
public class CtbVarbeni extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_varbeni";
private static final long serialVersionUID = 1L;
@@ -33,13 +37,13 @@ public class CtbVarbeni extends EntityBase {
@SqlField(value = "id_riga", nullable = false)
private Integer idRiga;
@SqlField(value = "descrizione_var", maxLength = 255, nullable = true)
@SqlField(value = "descrizione_var", maxLength = 255)
private String descrizioneVar;
@SqlField(value = "rivalutazione", maxLength = 20, nullable = true)
@SqlField(value = "rivalutazione", maxLength = 20)
private String rivalutazione;
@SqlField(value = "cod_agbe", maxLength = 5, nullable = true)
@SqlField(value = "cod_agbe", maxLength = 5)
private String codAgbe;
@SqlField(value = "valore_var", nullable = false)
@@ -48,7 +52,7 @@ public class CtbVarbeni extends EntityBase {
@SqlField(value = "flag_stam_reg", maxLength = 1, nullable = false)
private String flagStamReg;
@SqlField(value = "num_variazione", nullable = true)
@SqlField(value = "num_variazione")
private Integer numVariazione;
@SqlField(value = "var_fondo_ord", nullable = false)
@@ -57,17 +61,17 @@ public class CtbVarbeni extends EntityBase {
@SqlField(value = "var_fondo_ant", nullable = false)
private BigDecimal varFondoAnt;
@SqlField(value = "cod_divi_cont", maxLength = 5, nullable = true)
@SqlField(value = "cod_divi_cont", maxLength = 5)
private String codDiviCont;
@SqlField(value = "cambio_divi_cont", nullable = true)
@SqlField(value = "cambio_divi_cont")
private BigDecimal cambioDiviCont;
@SqlField(value = "flag_amm_1a", maxLength = 1, nullable = false, defaultObjectValue = "N")
private String flagAmm1a;
public CtbVarbeni() {
super();
super(logger);
}
public String getCodBene() {

View File

@@ -6,8 +6,9 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -15,6 +16,8 @@ import it.integry.ems_model.annotation.FK;
@JsonTypeName(CtbVarbeniRival.ENTITY)
public class CtbVarbeniRival extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "ctb_varbeni_rival";
private static final long serialVersionUID = 1L;
@@ -24,7 +27,7 @@ public class CtbVarbeniRival extends EntityBase {
private String rivalutazione;
public CtbVarbeniRival() {
super();
super(logger);
}
public String getRivalutazione() {

View File

@@ -4,6 +4,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.Master;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
@Master
@@ -11,16 +13,14 @@ import org.kie.api.definition.type.PropertyReactive;
@Table(DMtcolEl.ENTITY)
@JsonTypeName(DMtcolEl.ENTITY)
public class DMtcolEl extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "d_mtcol_el";
private static final long serialVersionUID = 1L;
public DMtcolEl() throws Exception {
super();
public DMtcolEl() {
super(logger);
}
@Override
public void checkPreSave() throws Exception {
}
}

View File

@@ -5,15 +5,19 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.util.Date;
import it.integry.ems_model.annotation.FK;
@PropertyReactive
@Table(DrlDocAttached.ENTITY)
@JsonTypeName(DrlDocAttached.ENTITY)
public class DrlDocAttached extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "drl_doc_attached";
private static final long serialVersionUID = 1L;
@@ -43,7 +47,7 @@ public class DrlDocAttached extends EntityBase {
private String idAttach;
public DrlDocAttached() {
super();
super(logger);
}
public String getCodAnag() {

View File

@@ -6,8 +6,9 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -15,6 +16,8 @@ import it.integry.ems_model.annotation.FK;
@JsonTypeName(DrlDocXmlEmail.ENTITY)
public class DrlDocXmlEmail extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "drl_doc_xml_email";
private static final long serialVersionUID = 1L;
@@ -28,7 +31,7 @@ public class DrlDocXmlEmail extends EntityBase {
private String progSdi;
public DrlDocXmlEmail() {
super();
super(logger);
}
public Integer getIdEmail() {

View File

@@ -5,15 +5,19 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.util.Date;
import it.integry.ems_model.annotation.FK;
@PropertyReactive
@Table(DrlOrdAttached.ENTITY)
@JsonTypeName(DrlOrdAttached.ENTITY)
public class DrlOrdAttached extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "drl_ord_attached";
private static final long serialVersionUID = 1L;
@@ -35,7 +39,7 @@ public class DrlOrdAttached extends EntityBase {
private String idAttach;
public DrlOrdAttached() {
super();
super(logger);
}
public String getGestione() {

View File

@@ -5,15 +5,19 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.util.Date;
import it.integry.ems_model.annotation.FK;
@PropertyReactive
@Table(DtbDocCarat.ENTITY)
@JsonTypeName(DtbDocCarat.ENTITY)
public class DtbDocCarat extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "dtb_doc_carat";
private static final long serialVersionUID = 1L;
@@ -42,11 +46,11 @@ public class DtbDocCarat extends EntityBase {
@SqlField(value = "nome_carat", maxLength = 40, nullable = false)
private String nomeCarat;
@SqlField(value = "valore_carat", maxLength = 40, nullable = true)
@SqlField(value = "valore_carat", maxLength = 40)
private String valoreCarat;
public DtbDocCarat() {
super();
super(logger);
}
public String getCodAnag() {

View File

@@ -6,10 +6,12 @@ import it.integry.ems_model.annotation.PK;
import it.integry.ems_model.annotation.SqlField;
import it.integry.ems_model.annotation.Table;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.Date;
import it.integry.ems_model.annotation.FK;
@Master
@PropertyReactive
@@ -17,6 +19,8 @@ import it.integry.ems_model.annotation.FK;
@JsonTypeName(DtbDocLogImport.ENTITY)
public class DtbDocLogImport extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "dtb_doc_log_import";
private static final long serialVersionUID = 1L;
@@ -33,40 +37,40 @@ public class DtbDocLogImport extends EntityBase {
@SqlField(value = "id_riga", nullable = false)
private Integer idRiga;
@SqlField(value = "cod_anag", maxLength = 5, nullable = true)
@SqlField(value = "cod_anag", maxLength = 5)
private String codAnag;
@SqlField(value = "cod_dtip", maxLength = 5, nullable = true)
@SqlField(value = "cod_dtip", maxLength = 5)
private String codDtip;
@SqlField(value = "data_doc", nullable = true)
@SqlField(value = "data_doc")
private Date dataDoc;
@SqlField(value = "descrizione", maxLength = 4096, nullable = true)
@SqlField(value = "descrizione", maxLength = 4096)
private String descrizione;
@SqlField(value = "flag_tipo_log", maxLength = 1, nullable = false)
private String flagTipoLog;
@SqlField(value = "num_doc", nullable = true)
@SqlField(value = "num_doc")
private Integer numDoc;
@SqlField(value = "ser_doc", maxLength = 2, nullable = true)
@SqlField(value = "ser_doc", maxLength = 2)
private String serDoc;
@SqlField(value = "serie", maxLength = 5, nullable = true)
@SqlField(value = "serie", maxLength = 5)
private String serie;
@SqlField(value = "tot_doc", nullable = false, defaultObjectValue = "0")
private Integer totDoc;
@SqlField(value = "tot_doc_int", nullable = true, defaultObjectValue = "0")
@SqlField(value = "tot_doc_int", defaultObjectValue = "0")
private BigDecimal totDocInt;
@SqlField(value = "tot_doc_new", nullable = false, defaultObjectValue = "0")
private Integer totDocNew;
@SqlField(value = "tot_doc_ret", nullable = true, defaultObjectValue = "0")
@SqlField(value = "tot_doc_ret", defaultObjectValue = "0")
private BigDecimal totDocRet;
@SqlField(value = "tot_qta_doc", nullable = false, defaultObjectValue = "0")
@@ -79,7 +83,7 @@ public class DtbDocLogImport extends EntityBase {
private BigDecimal totQtaResi;
public DtbDocLogImport() {
super();
super(logger);
}
public Date getDataImport() {

View File

@@ -8,7 +8,10 @@ import it.integry.ems_model.base.EntityBase;
import it.integry.ems_model.utility.UtilityString;
import it.integry.ems_model.utility.UtilityZip;
import org.apache.commons.codec.binary.Base64;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.Date;
@@ -18,6 +21,8 @@ import java.util.Date;
@JsonTypeName(DtbDocPdf.ENTITY)
public class DtbDocPdf extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "dtb_doc_pdf";
private static final long serialVersionUID = 1L;
@@ -46,37 +51,37 @@ public class DtbDocPdf extends EntityBase {
@SqlField(value = "versione", nullable = false)
private Integer versione;
@SqlField(value = "data_stampa", nullable = true, defaultObjectValue = CommonConstants.TIMESTAMP)
@SqlField(value = "data_stampa", defaultObjectValue = CommonConstants.TIMESTAMP)
private Date dataStampa;
@Blob
@ObjectStorage
@SqlField(value = "filecontent", nullable = true)
@SqlField(value = "filecontent")
private String filecontent;
@SqlField(value = "filename", maxLength = 50, nullable = true)
@SqlField(value = "filename", maxLength = 50)
private String filename;
@SqlField(value = "filesize", nullable = true)
@SqlField(value = "filesize")
private BigDecimal filesize;
@SqlField(value = "mail_dest_invio", maxLength = 255, nullable = true)
@SqlField(value = "mail_dest_invio", maxLength = 255)
private String mailDestInvio;
@SqlField(value = "ult_data_invio", nullable = true)
@SqlField(value = "ult_data_invio")
private Date ultDataInvio;
@SqlField(value = "ult_utente_invio", maxLength = 25, nullable = true)
@SqlField(value = "ult_utente_invio", maxLength = 25)
private String ultUtenteInvio;
@SqlField(value = "utente", maxLength = 25, nullable = true)
@SqlField(value = "utente", maxLength = 25)
private String utente;
@SqlField(value = "prog_sdi", maxLength = 5, nullable = true)
@SqlField(value = "prog_sdi", maxLength = 5)
private String progSdi;
public DtbDocPdf() {
super();
super(logger);
}
public String getCodAnag() {

View File

@@ -5,7 +5,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.commons.codec.binary.Base64;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.Date;
@@ -15,6 +18,8 @@ import java.util.Date;
@JsonTypeName(DtbDocXml.ENTITY)
public class DtbDocXml extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "dtb_doc_xml";
private static final long serialVersionUID = 1L;
@@ -41,45 +46,45 @@ public class DtbDocXml extends EntityBase {
@SqlField(value = "ser_doc", maxLength = 2, nullable = false)
private String serDoc;
@SqlField(value = "versione", nullable = true)
@SqlField(value = "versione")
private Integer versione;
@SqlField(value = "data_creazione", nullable = false)
private Date dataCreazione;
@SqlField(value = "data_invio_app", nullable = true)
@SqlField(value = "data_invio_app")
private Date dataInvioApp;
@SqlField(value = "data_invio_sdi", nullable = true)
@SqlField(value = "data_invio_sdi")
private Date dataInvioSdi;
@SqlField(value = "data_risp_sdi", nullable = true)
@SqlField(value = "data_risp_sdi")
private Date dataRispostaSdi;
@ObjectStorage(suffix = 0)
@SqlField(value = "filecontent", nullable = true)
@SqlField(value = "filecontent")
private String filecontent;
@SqlField(value = "msg_errore", maxLength = 255, nullable = true)
@SqlField(value = "msg_errore", maxLength = 255)
private String msgErrore;
@ObjectStorage(suffix = 2)
@SqlField(value = "pdf_esito", nullable = true)
@SqlField(value = "pdf_esito")
private String pdfEsito;
@ObjectStorage(suffix = 3, existsInDb = false)
private String xmlEsito;
@SqlField(value = "prog_archivio", maxLength = 5, nullable = true)
@SqlField(value = "prog_archivio", maxLength = 5)
private String progArchivio;
@SqlField(value = "stato", maxLength = 25, nullable = true)
@SqlField(value = "stato", maxLength = 25)
private String stato;
@SqlField(value = "filename", maxLength = 50, nullable = false)
private String filename;
@SqlField(value = "marca_da_bollo", nullable = true)
@SqlField(value = "marca_da_bollo")
private BigDecimal marcaDaBollo;
@Priority(value = 1, copyPk = false)
@@ -89,26 +94,26 @@ public class DtbDocXml extends EntityBase {
* Contenuto fattura convertita in formato PDF
*/
@ObjectStorage(suffix = 1)
@SqlField(value = "filecontent_pdf", nullable = true)
@SqlField(value = "filecontent_pdf")
private String fileContentPdf;
/**
* Nome fattura convertita in formato PDF
*/
@SqlField(value = "filename_pdf", maxLength = 50, nullable = true)
@SqlField(value = "filename_pdf", maxLength = 50)
private String fileNamePdf;
@SqlField(value = "file_size", nullable = true)
@SqlField(value = "file_size")
private BigDecimal fileSize;
@SqlField(value = "file_size1", nullable = true)
@SqlField(value = "file_size1")
private BigDecimal fileSize1;
@SqlField(value = "file_size2", nullable = true)
@SqlField(value = "file_size2")
private BigDecimal fileSize2;
public DtbDocXml() {
super();
super(logger);
}
public String getProgSdi() {

View File

@@ -10,6 +10,8 @@ import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EquatableEntityInterface;
import it.integry.ems_model.entity.common.DtbBaseDocR;
import it.integry.ems_model.utility.UtilityString;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
@@ -20,203 +22,290 @@ import java.util.Objects;
@Table(DtbDocr.ENTITY)
@JsonTypeName(DtbDocr.ENTITY)
public class DtbDocr extends DtbBaseDocR implements EquatableEntityInterface<DtbDocr> {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "dtb_docr";
private static final long serialVersionUID = 1L;
@PK
@SqlField(value = "cod_anag")
@SqlField(value = "cod_anag", maxLength = 5, nullable = false)
private String codAnag;
@PK
@SqlField(value = "cod_dtip")
@SqlField(value = "cod_dtip", maxLength = 5, nullable = false)
private String codDtip;
@PK
@SqlField(value = "data_doc")
@SqlField(value = "data_doc", nullable = false)
private Date dataDoc;
@PK
@SqlDetailId
@SqlField(value = "id_riga")
@SqlField(value = "id_riga", nullable = false)
private Integer idRiga;
@PK
@SqlField(value = "num_doc")
@SqlField(value = "num_doc", nullable = false)
private Integer numDoc;
@PK
@SqlField(value = "ser_doc")
@SqlField(value = "ser_doc", maxLength = 2, nullable = false)
private String serDoc;
@SqlField(value = "cod_aliq")
@SqlField(value = "cod_aliq", maxLength = 5)
private String codAliq;
@SqlField(value = "cod_anag_comp")
@SqlField(value = "cod_anag_comp", maxLength = 5)
private String codAnagComp;
@SqlField(value = "cod_art_for")
@SqlField(value = "cod_art_for", maxLength = 25)
private String codArtFor;
@SqlField(value = "cod_col")
@SqlField(value = "cod_col", maxLength = 5)
private String codCol;
@SqlField(value = "cod_dtip_comp")
@SqlField(value = "cod_dtip_comp", maxLength = 5, nullable = false)
private String codDtipComp;
@SqlField(value = "cod_jcom")
@SqlField(value = "cod_jcom", maxLength = 10)
private String codJcom;
@SqlField(value = "cod_mart")
@SqlField(value = "cod_mart", maxLength = 15)
private String codMart;
@ImportFromParent
@SqlField(value = "cod_mdep")
@SqlField(value = "cod_mdep", maxLength = 5)
private String codMdep;
@SqlField(value = "cod_promo")
@SqlField(value = "cod_promo", maxLength = 10)
private String codPromo;
@SqlField(value = "cod_tagl")
@SqlField(value = "cod_tagl", maxLength = 15)
private String codTagl;
@SqlField(value = "costo_unt", defaultObjectValue = "0")
@SqlField(value = "costo_unt", nullable = false, defaultObjectValue = "0")
private BigDecimal costoUnt;
@SqlField(value = "data_doc_comp")
@SqlField(value = "data_doc_comp", nullable = false)
private Date dataDocComp;
@SqlField(value = "data_ord")
private Date dataOrd;
@SqlField(value = "descrizione", maxLength = 40)
@SqlField(value = "descrizione", maxLength = 40, nullable = false)
private String descrizione;
@SqlField(value = "descrizione_estesa")
@SqlField(value = "descrizione_estesa", maxLength = 4096)
private String descrizioneEstesa;
@SqlField(value = "flag_evaso_forzato", defaultObjectValue = "N")
@SqlField(value = "flag_evaso_forzato", maxLength = 1, nullable = false, defaultObjectValue = "N")
private String flagEvasoForzato;
@FireRecalc
@SqlField(value = "importo_riga", defaultObjectValue = "0")
@SqlField(value = "importo_riga", nullable = false, defaultObjectValue = "0")
private BigDecimal importoRiga;
@ForceRecalc
@SqlField(value = "num_cnf", defaultObjectValue = "0")
@SqlField(value = "num_cnf", nullable = false, defaultObjectValue = "0")
private BigDecimal numCnf;
@SqlField(value = "num_doc_comp")
@SqlField(value = "num_doc_comp", nullable = false)
private Integer numDocComp;
@SqlField(value = "num_ord")
private Integer numOrd;
@SqlField(value = "partita_mag")
@SqlField(value = "partita_mag", maxLength = 20)
private String partitaMag;
@SqlField(value = "perc_gest", defaultObjectValue = "0")
@SqlField(value = "perc_gest", nullable = false, defaultObjectValue = "0")
private BigDecimal percGest;
@SqlField(value = "perc_ispe", defaultObjectValue = "0")
@SqlField(value = "perc_ispe", nullable = false, defaultObjectValue = "0")
private BigDecimal percIspe;
@SqlField(value = "perc_oneri", defaultObjectValue = "0")
@SqlField(value = "perc_oneri", nullable = false, defaultObjectValue = "0")
private BigDecimal percOneri;
@SqlField(value = "perc_promo", defaultObjectValue = "0")
@SqlField(value = "perc_promo", nullable = false, defaultObjectValue = "0")
private BigDecimal percPromo;
@SqlField(value = "perc_prov", defaultObjectValue = "0")
@SqlField(value = "perc_prov", nullable = false, defaultObjectValue = "0")
private BigDecimal percProv;
@SqlField(value = "perc_prov2", defaultObjectValue = "0")
@SqlField(value = "perc_prov2", nullable = false, defaultObjectValue = "0")
private BigDecimal percProv2;
@ForceRecalc
@SqlField(value = "peso_lordo", defaultObjectValue = "0")
@SqlField(value = "peso_lordo", nullable = false, defaultObjectValue = "0")
private BigDecimal pesoLordo;
@SqlField(value = "posizione")
@SqlField(value = "posizione", maxLength = 40)
private String posizione;
@SqlField(value = "qta_cnf", defaultObjectValue = "1")
@SqlField(value = "qta_cnf", nullable = false, defaultObjectValue = "1")
private BigDecimal qtaCnf;
@FireRecalc
@SqlField(value = "qta_doc", defaultObjectValue = "0")
@SqlField(value = "qta_doc", nullable = false, defaultObjectValue = "0")
private BigDecimal qtaDoc;
@ForceRecalc
@SqlField(value = "qta_doc2", defaultObjectValue = "0")
private BigDecimal qtaDoc2;
@ForceRecalc
@SqlField(value = "qta_doc3", defaultObjectValue = "0")
private BigDecimal qtaDoc3;
@FireRecalc
@SqlField(value = "rap_conv", defaultObjectValue = "1")
private BigDecimal rapConv;
@SqlField(value = "riga_ord")
private Integer rigaOrd;
@FireRecalc
@SqlField(value = "sconto5", defaultObjectValue = "0")
@SqlField(value = "sconto5", nullable = false, defaultObjectValue = "0")
private BigDecimal sconto5;
@FireRecalc
@SqlField(value = "sconto6", defaultObjectValue = "0")
@SqlField(value = "sconto6", nullable = false, defaultObjectValue = "0")
private BigDecimal sconto6;
@FireRecalc
@SqlField(value = "sconto7", defaultObjectValue = "0")
@SqlField(value = "sconto7", nullable = false, defaultObjectValue = "0")
private BigDecimal sconto7;
@FireRecalc
@SqlField(value = "sconto8", defaultObjectValue = "0")
@SqlField(value = "sconto8", nullable = false, defaultObjectValue = "0")
private BigDecimal sconto8;
@SqlField(value = "ser_doc_comp")
@SqlField(value = "ser_doc_comp", maxLength = 2, nullable = false)
private String serDocComp;
@SqlField(value = "unt_doc")
@SqlField(value = "unt_doc", maxLength = 3)
private String untDoc;
@ForceRecalc
@SqlField(value = "unt_doc2")
@SqlField(value = "unt_doc2", maxLength = 3)
private String untDoc2;
@ForceRecalc
@SqlField(value = "unt_doc3")
@SqlField(value = "unt_doc3", maxLength = 3)
private String untDoc3;
@SqlField(value = "val_gest", defaultObjectValue = "0")
@SqlField(value = "val_gest", nullable = false, defaultObjectValue = "0")
private BigDecimal valGest;
@SqlField(value = "val_ispe", defaultObjectValue = "0")
@SqlField(value = "val_ispe", nullable = false, defaultObjectValue = "0")
private BigDecimal valIspe;
@SqlField(value = "val_oneri", defaultObjectValue = "0")
@SqlField(value = "val_oneri", nullable = false, defaultObjectValue = "0")
private BigDecimal valOneri;
@SqlField(value = "val_promo", defaultObjectValue = "0")
@SqlField(value = "val_promo", nullable = false, defaultObjectValue = "0")
private BigDecimal valPromo;
@SqlField(value = "val_prov", defaultObjectValue = "0")
@SqlField(value = "val_prov", nullable = false, defaultObjectValue = "0")
private BigDecimal valProv;
@SqlField(value = "val_prov2", defaultObjectValue = "0")
@SqlField(value = "val_prov2", nullable = false, defaultObjectValue = "0")
private BigDecimal valProv2;
@FireRecalc
@SqlField(value = "val_unt", defaultObjectValue = "0")
private BigDecimal valUnt;
@FireRecalc
@SqlField(value = "val_unt_iva", defaultObjectValue = "0")
@SqlField(value = "val_unt_iva", nullable = false, defaultObjectValue = "0")
private BigDecimal valUntIva;
@SqlField(value = "cod_mtip")
@SqlField(value = "cod_mtip", maxLength = 5)
private String codMtip;
@SqlField(value = "matricola")
@SqlField(value = "matricola", maxLength = 20)
private String matricola;
@SqlField(value = "data_iniz_comp")
private Date dataInizComp;
@SqlField(value = "data_fine_comp")
private Date dataFineComp;
@SqlField(value = "cod_kit")
@SqlField(value = "cod_kit", maxLength = 15)
private String codKit;
@SqlField(value = "cod_alis")
@SqlField(value = "cod_alis", maxLength = 5)
private String codAlis;
@SqlField(value = "data_ins_row", defaultObjectValue = CommonConstants.TIMESTAMP)
private Date dataInsRow;
@SqlField(value = "note")
@SqlField(value = "note", maxLength = 255)
private String note;
@SqlField(value = "cod_tcol_UI")
private String codTcolUi;
@SqlField(value = "cod_tcol_UL")
private String codTcolUl;
@SqlField(value = "colli_pedana")
private BigDecimal colliPedana;
@SqlField(value = "activity_id_row")
@SqlField(value = "activity_id_row", maxLength = 15)
private String activityIdRow;
@SqlField(value = "id_contratto")
private Long idContratto;
/*Flag_sezione vale 1 per le righe dei riepilogo INTRa, mentre per tutte le altre righe vale null */
@SqlField(value = "flag_sezione")
private Integer flagSezione;
@JsonProperty(value = "pesoNetto")
private BigDecimal pesoNetto;
private int rigaKit;
@JsonProperty("flag_is_kit")
private String flagIsKit;
private String codJfas;
@ImportFromParent
private String gestione;
@ImportFromParent
private String codVdes;
@ImportFromParent
private String listino;
@ImportFromParent
private String flagTd;
@ImportFromParent
private BigDecimal sconto1;
@ImportFromParent
private BigDecimal sconto2;
@ImportFromParent
private BigDecimal sconto3;
@ImportFromParent
private BigDecimal sconto4;
@JsonProperty(value = "perc_aliq")
private BigDecimal percAliq;
@JsonProperty("data_scad")
private Date dataScad;
@ImportFromParent
private String reso;
@@ -224,51 +313,74 @@ public class DtbDocr extends DtbBaseDocR implements EquatableEntityInterface<Dtb
private Boolean fuoriAssortimento;
private MtbAart mtbAart;
private UntMisDTO untMisDTO;
@ImportFromParent
private String generaMovCont;
@Priority(1)
private MtbPartitaMag mtbPartitaMag;
private String tipoIva;
@ImportFromParent
private String codFornTd;
@ImportFromParent
private String codVage;
@ImportFromParent
private String codDivi;
@ImportFromParent
private String flagPrzScontati;
@ImportFromParent
private BigDecimal cambio;
@ImportFromParent
private String flagCosto;
@ImportFromParent
private String tipoEmissione;
@ImportFromParent
private Date dataReg;
private String codCcon;
@ImportFromParent
private String flagPrzIva;
private Boolean setDatiLisv = true;
//Dati bolla
private String codDtipBolla;
private Date dataDocBolla;
private String serDocBolla;
private Integer numDocBolla;
private Integer idRigaBolla;
private Boolean docAp;
@MapToTable(value = "data_ins_testata")
private Date dataInsTestata;
@JsonProperty("corrispettivo")
private boolean corrispettivo; //valorizzata a true nella procedura automatica di generazione corrispettivi
private boolean //valorizzata a true nella procedura automatica di generazione corrispettivi
corrispettivo;
private DtbDocr dtbDocrBolla;
public DtbDocr() {
super();
super(logger);
}
public String getCodAnag() {
return codAnag;
}
@@ -871,13 +983,11 @@ public class DtbDocr extends DtbBaseDocR implements EquatableEntityInterface<Dtb
return this;
}
@Override
public String getNote() {
return note;
}
@Override
public DtbDocr setNote(String note) {
this.note = note;
@@ -1314,248 +1424,32 @@ public class DtbDocr extends DtbBaseDocR implements EquatableEntityInterface<Dtb
return this;
}
@Override
public void checkPreSave() throws Exception {
}
@Override
public boolean equalsKey(DtbDocr other) {
if (this == other) return true;
return Objects.equals(getCodAnag(), other.getCodAnag()) &&
Objects.equals(getCodDtip(), other.getCodDtip()) &&
Objects.equals(getDataDoc(), other.getDataDoc()) &&
Objects.equals(getIdRiga(), other.getIdRiga()) &&
Objects.equals(getNumDoc(), other.getNumDoc()) &&
Objects.equals(getSerDoc(), other.getSerDoc());
if (this == other)
return true;
return Objects.equals(getCodAnag(), other.getCodAnag()) && Objects.equals(getCodDtip(), other.getCodDtip()) && Objects.equals(getDataDoc(), other.getDataDoc()) && Objects.equals(getIdRiga(), other.getIdRiga()) && Objects.equals(getNumDoc(), other.getNumDoc()) && Objects.equals(getSerDoc(), other.getSerDoc());
}
@Override
public boolean equalsContent(DtbDocr other) {
if (this == other) return true;
return Objects.equals(getCodAnag(), other.getCodAnag()) &&
Objects.equals(getCodDtip(), other.getCodDtip()) &&
Objects.equals(getDataDoc(), other.getDataDoc()) &&
Objects.equals(getIdRiga(), other.getIdRiga()) &&
Objects.equals(getNumDoc(), other.getNumDoc()) &&
Objects.equals(getSerDoc(), other.getSerDoc()) &&
Objects.equals(getCodAliq(), other.getCodAliq()) &&
Objects.equals(getCodAnagComp(), other.getCodAnagComp()) &&
Objects.equals(getCodArtFor(), other.getCodArtFor()) &&
Objects.equals(getCodCol(), other.getCodCol()) &&
Objects.equals(getCodDtipComp(), other.getCodDtipComp()) &&
Objects.equals(getCodJcom(), other.getCodJcom()) &&
Objects.equals(getCodMart(), other.getCodMart()) &&
Objects.equals(getCodMdep(), other.getCodMdep()) &&
Objects.equals(getCodPromo(), other.getCodPromo()) &&
Objects.equals(getCodTagl(), other.getCodTagl()) &&
Objects.equals(getCostoUnt(), other.getCostoUnt()) &&
Objects.equals(getDataDocComp(), other.getDataDocComp()) &&
Objects.equals(getDataOrd(), other.getDataOrd()) &&
Objects.equals(getDescrizione(), other.getDescrizione()) &&
Objects.equals(getDescrizioneEstesa(), other.getDescrizioneEstesa()) &&
Objects.equals(getFlagEvasoForzato(), other.getFlagEvasoForzato()) &&
Objects.equals(getImportoRiga(), other.getImportoRiga()) &&
Objects.equals(getNumCnf(), other.getNumCnf()) &&
Objects.equals(getNumDocComp(), other.getNumDocComp()) &&
Objects.equals(getNumOrd(), other.getNumOrd()) &&
Objects.equals(getPartitaMag(), other.getPartitaMag()) &&
Objects.equals(getPercGest(), other.getPercGest()) &&
Objects.equals(getPercIspe(), other.getPercIspe()) &&
Objects.equals(getPercOneri(), other.getPercOneri()) &&
Objects.equals(getPercPromo(), other.getPercPromo()) &&
Objects.equals(getPercProv(), other.getPercProv()) &&
Objects.equals(getPercProv2(), other.getPercProv2()) &&
Objects.equals(getPesoLordo(), other.getPesoLordo()) &&
Objects.equals(getPosizione(), other.getPosizione()) &&
Objects.equals(getQtaCnf(), other.getQtaCnf()) &&
Objects.equals(getQtaDoc(), other.getQtaDoc()) &&
Objects.equals(getQtaDoc2(), other.getQtaDoc2()) &&
Objects.equals(getQtaDoc3(), other.getQtaDoc3()) &&
Objects.equals(getRapConv(), other.getRapConv()) &&
Objects.equals(getRigaOrd(), other.getRigaOrd()) &&
Objects.equals(getSconto5(), other.getSconto5()) &&
Objects.equals(getSconto6(), other.getSconto6()) &&
Objects.equals(getSconto7(), other.getSconto7()) &&
Objects.equals(getSconto8(), other.getSconto8()) &&
Objects.equals(getSerDocComp(), other.getSerDocComp()) &&
Objects.equals(getUntDoc(), other.getUntDoc()) &&
Objects.equals(getUntDoc2(), other.getUntDoc2()) &&
Objects.equals(getUntDoc3(), other.getUntDoc3()) &&
Objects.equals(getValGest(), other.getValGest()) &&
Objects.equals(getValIspe(), other.getValIspe()) &&
Objects.equals(getValOneri(), other.getValOneri()) &&
Objects.equals(getValPromo(), other.getValPromo()) &&
Objects.equals(getValProv(), other.getValProv()) &&
Objects.equals(getValProv2(), other.getValProv2()) &&
Objects.equals(getValUnt(), other.getValUnt()) &&
Objects.equals(getValUntIva(), other.getValUntIva()) &&
Objects.equals(getCodMtip(), other.getCodMtip()) &&
Objects.equals(getMatricola(), other.getMatricola()) &&
Objects.equals(getDataInizComp(), other.getDataInizComp()) &&
Objects.equals(getDataFineComp(), other.getDataFineComp()) &&
Objects.equals(getCodKit(), other.getCodKit()) &&
Objects.equals(getCodAlis(), other.getCodAlis()) &&
Objects.equals(getDataInsRow(), other.getDataInsRow()) &&
Objects.equals(getNote(), other.getNote()) &&
Objects.equals(getCodTcolUi(), other.getCodTcolUi()) &&
Objects.equals(getCodTcolUl(), other.getCodTcolUl()) &&
Objects.equals(getColliPedana(), other.getColliPedana()) &&
Objects.equals(getActivityIdRow(), other.getActivityIdRow()) &&
Objects.equals(getIdContratto(), other.getIdContratto()) &&
Objects.equals(getFlagSezione(), other.getFlagSezione());
if (this == other)
return true;
return Objects.equals(getCodAnag(), other.getCodAnag()) && Objects.equals(getCodDtip(), other.getCodDtip()) && Objects.equals(getDataDoc(), other.getDataDoc()) && Objects.equals(getIdRiga(), other.getIdRiga()) && Objects.equals(getNumDoc(), other.getNumDoc()) && Objects.equals(getSerDoc(), other.getSerDoc()) && Objects.equals(getCodAliq(), other.getCodAliq()) && Objects.equals(getCodAnagComp(), other.getCodAnagComp()) && Objects.equals(getCodArtFor(), other.getCodArtFor()) && Objects.equals(getCodCol(), other.getCodCol()) && Objects.equals(getCodDtipComp(), other.getCodDtipComp()) && Objects.equals(getCodJcom(), other.getCodJcom()) && Objects.equals(getCodMart(), other.getCodMart()) && Objects.equals(getCodMdep(), other.getCodMdep()) && Objects.equals(getCodPromo(), other.getCodPromo()) && Objects.equals(getCodTagl(), other.getCodTagl()) && Objects.equals(getCostoUnt(), other.getCostoUnt()) && Objects.equals(getDataDocComp(), other.getDataDocComp()) && Objects.equals(getDataOrd(), other.getDataOrd()) && Objects.equals(getDescrizione(), other.getDescrizione()) && Objects.equals(getDescrizioneEstesa(), other.getDescrizioneEstesa()) && Objects.equals(getFlagEvasoForzato(), other.getFlagEvasoForzato()) && Objects.equals(getImportoRiga(), other.getImportoRiga()) && Objects.equals(getNumCnf(), other.getNumCnf()) && Objects.equals(getNumDocComp(), other.getNumDocComp()) && Objects.equals(getNumOrd(), other.getNumOrd()) && Objects.equals(getPartitaMag(), other.getPartitaMag()) && Objects.equals(getPercGest(), other.getPercGest()) && Objects.equals(getPercIspe(), other.getPercIspe()) && Objects.equals(getPercOneri(), other.getPercOneri()) && Objects.equals(getPercPromo(), other.getPercPromo()) && Objects.equals(getPercProv(), other.getPercProv()) && Objects.equals(getPercProv2(), other.getPercProv2()) && Objects.equals(getPesoLordo(), other.getPesoLordo()) && Objects.equals(getPosizione(), other.getPosizione()) && Objects.equals(getQtaCnf(), other.getQtaCnf()) && Objects.equals(getQtaDoc(), other.getQtaDoc()) && Objects.equals(getQtaDoc2(), other.getQtaDoc2()) && Objects.equals(getQtaDoc3(), other.getQtaDoc3()) && Objects.equals(getRapConv(), other.getRapConv()) && Objects.equals(getRigaOrd(), other.getRigaOrd()) && Objects.equals(getSconto5(), other.getSconto5()) && Objects.equals(getSconto6(), other.getSconto6()) && Objects.equals(getSconto7(), other.getSconto7()) && Objects.equals(getSconto8(), other.getSconto8()) && Objects.equals(getSerDocComp(), other.getSerDocComp()) && Objects.equals(getUntDoc(), other.getUntDoc()) && Objects.equals(getUntDoc2(), other.getUntDoc2()) && Objects.equals(getUntDoc3(), other.getUntDoc3()) && Objects.equals(getValGest(), other.getValGest()) && Objects.equals(getValIspe(), other.getValIspe()) && Objects.equals(getValOneri(), other.getValOneri()) && Objects.equals(getValPromo(), other.getValPromo()) && Objects.equals(getValProv(), other.getValProv()) && Objects.equals(getValProv2(), other.getValProv2()) && Objects.equals(getValUnt(), other.getValUnt()) && Objects.equals(getValUntIva(), other.getValUntIva()) && Objects.equals(getCodMtip(), other.getCodMtip()) && Objects.equals(getMatricola(), other.getMatricola()) && Objects.equals(getDataInizComp(), other.getDataInizComp()) && Objects.equals(getDataFineComp(), other.getDataFineComp()) && Objects.equals(getCodKit(), other.getCodKit()) && Objects.equals(getCodAlis(), other.getCodAlis()) && Objects.equals(getDataInsRow(), other.getDataInsRow()) && Objects.equals(getNote(), other.getNote()) && Objects.equals(getCodTcolUi(), other.getCodTcolUi()) && Objects.equals(getCodTcolUl(), other.getCodTcolUl()) && Objects.equals(getColliPedana(), other.getColliPedana()) && Objects.equals(getActivityIdRow(), other.getActivityIdRow()) && Objects.equals(getIdContratto(), other.getIdContratto()) && Objects.equals(getFlagSezione(), other.getFlagSezione());
}
@Override
public boolean equals(Object object) {
if (this == object) return true;
if (!(object instanceof DtbDocr)) return false;
if (this == object)
return true;
if (!(object instanceof DtbDocr))
return false;
DtbDocr dtbDocr = (DtbDocr) object;
return Objects.equals(getCodAnag(), dtbDocr.getCodAnag()) &&
Objects.equals(getCodDtip(), dtbDocr.getCodDtip()) &&
Objects.equals(getDataDoc(), dtbDocr.getDataDoc()) &&
Objects.equals(getIdRiga(), dtbDocr.getIdRiga()) &&
Objects.equals(getNumDoc(), dtbDocr.getNumDoc()) &&
Objects.equals(getSerDoc(), dtbDocr.getSerDoc()) &&
Objects.equals(getCodAliq(), dtbDocr.getCodAliq()) &&
Objects.equals(getCodAnagComp(), dtbDocr.getCodAnagComp()) &&
Objects.equals(getCodArtFor(), dtbDocr.getCodArtFor()) &&
Objects.equals(getCodCol(), dtbDocr.getCodCol()) &&
Objects.equals(getCodDtipComp(), dtbDocr.getCodDtipComp()) &&
Objects.equals(getCodJcom(), dtbDocr.getCodJcom()) &&
Objects.equals(getCodMart(), dtbDocr.getCodMart()) &&
Objects.equals(getCodMdep(), dtbDocr.getCodMdep()) &&
Objects.equals(getCodPromo(), dtbDocr.getCodPromo()) &&
Objects.equals(getCodTagl(), dtbDocr.getCodTagl()) &&
Objects.equals(getCostoUnt(), dtbDocr.getCostoUnt()) &&
Objects.equals(getDataDocComp(), dtbDocr.getDataDocComp()) &&
Objects.equals(getDataOrd(), dtbDocr.getDataOrd()) &&
Objects.equals(getDescrizione(), dtbDocr.getDescrizione()) &&
Objects.equals(getDescrizioneEstesa(), dtbDocr.getDescrizioneEstesa()) &&
Objects.equals(getFlagEvasoForzato(), dtbDocr.getFlagEvasoForzato()) &&
Objects.equals(getImportoRiga(), dtbDocr.getImportoRiga()) &&
Objects.equals(getNumCnf(), dtbDocr.getNumCnf()) &&
Objects.equals(getNumDocComp(), dtbDocr.getNumDocComp()) &&
Objects.equals(getNumOrd(), dtbDocr.getNumOrd()) &&
Objects.equals(getPartitaMag(), dtbDocr.getPartitaMag()) &&
Objects.equals(getPercGest(), dtbDocr.getPercGest()) &&
Objects.equals(getPercIspe(), dtbDocr.getPercIspe()) &&
Objects.equals(getPercOneri(), dtbDocr.getPercOneri()) &&
Objects.equals(getPercPromo(), dtbDocr.getPercPromo()) &&
Objects.equals(getPercProv(), dtbDocr.getPercProv()) &&
Objects.equals(getPercProv2(), dtbDocr.getPercProv2()) &&
Objects.equals(getPesoLordo(), dtbDocr.getPesoLordo()) &&
Objects.equals(getPosizione(), dtbDocr.getPosizione()) &&
Objects.equals(getQtaCnf(), dtbDocr.getQtaCnf()) &&
Objects.equals(getQtaDoc(), dtbDocr.getQtaDoc()) &&
Objects.equals(getQtaDoc2(), dtbDocr.getQtaDoc2()) &&
Objects.equals(getQtaDoc3(), dtbDocr.getQtaDoc3()) &&
Objects.equals(getRapConv(), dtbDocr.getRapConv()) &&
Objects.equals(getRigaOrd(), dtbDocr.getRigaOrd()) &&
Objects.equals(getSconto5(), dtbDocr.getSconto5()) &&
Objects.equals(getSconto6(), dtbDocr.getSconto6()) &&
Objects.equals(getSconto7(), dtbDocr.getSconto7()) &&
Objects.equals(getSconto8(), dtbDocr.getSconto8()) &&
Objects.equals(getSerDocComp(), dtbDocr.getSerDocComp()) &&
Objects.equals(getUntDoc(), dtbDocr.getUntDoc()) &&
Objects.equals(getUntDoc2(), dtbDocr.getUntDoc2()) &&
Objects.equals(getUntDoc3(), dtbDocr.getUntDoc3()) &&
Objects.equals(getValGest(), dtbDocr.getValGest()) &&
Objects.equals(getValIspe(), dtbDocr.getValIspe()) &&
Objects.equals(getValOneri(), dtbDocr.getValOneri()) &&
Objects.equals(getValPromo(), dtbDocr.getValPromo()) &&
Objects.equals(getValProv(), dtbDocr.getValProv()) &&
Objects.equals(getValProv2(), dtbDocr.getValProv2()) &&
Objects.equals(getValUnt(), dtbDocr.getValUnt()) &&
Objects.equals(getValUntIva(), dtbDocr.getValUntIva()) &&
Objects.equals(getCodMtip(), dtbDocr.getCodMtip()) &&
Objects.equals(getMatricola(), dtbDocr.getMatricola()) &&
Objects.equals(getDataInizComp(), dtbDocr.getDataInizComp()) &&
Objects.equals(getDataFineComp(), dtbDocr.getDataFineComp()) &&
Objects.equals(getCodKit(), dtbDocr.getCodKit()) &&
Objects.equals(getCodAlis(), dtbDocr.getCodAlis()) &&
Objects.equals(getDataInsRow(), dtbDocr.getDataInsRow()) &&
Objects.equals(getNote(), dtbDocr.getNote()) &&
Objects.equals(getCodTcolUi(), dtbDocr.getCodTcolUi()) &&
Objects.equals(getCodTcolUl(), dtbDocr.getCodTcolUl()) &&
Objects.equals(getColliPedana(), dtbDocr.getColliPedana()) &&
Objects.equals(getActivityIdRow(), dtbDocr.getActivityIdRow()) &&
Objects.equals(getIdContratto(), dtbDocr.getIdContratto()) &&
Objects.equals(getFlagSezione(), dtbDocr.getFlagSezione());
return Objects.equals(getCodAnag(), dtbDocr.getCodAnag()) && Objects.equals(getCodDtip(), dtbDocr.getCodDtip()) && Objects.equals(getDataDoc(), dtbDocr.getDataDoc()) && Objects.equals(getIdRiga(), dtbDocr.getIdRiga()) && Objects.equals(getNumDoc(), dtbDocr.getNumDoc()) && Objects.equals(getSerDoc(), dtbDocr.getSerDoc()) && Objects.equals(getCodAliq(), dtbDocr.getCodAliq()) && Objects.equals(getCodAnagComp(), dtbDocr.getCodAnagComp()) && Objects.equals(getCodArtFor(), dtbDocr.getCodArtFor()) && Objects.equals(getCodCol(), dtbDocr.getCodCol()) && Objects.equals(getCodDtipComp(), dtbDocr.getCodDtipComp()) && Objects.equals(getCodJcom(), dtbDocr.getCodJcom()) && Objects.equals(getCodMart(), dtbDocr.getCodMart()) && Objects.equals(getCodMdep(), dtbDocr.getCodMdep()) && Objects.equals(getCodPromo(), dtbDocr.getCodPromo()) && Objects.equals(getCodTagl(), dtbDocr.getCodTagl()) && Objects.equals(getCostoUnt(), dtbDocr.getCostoUnt()) && Objects.equals(getDataDocComp(), dtbDocr.getDataDocComp()) && Objects.equals(getDataOrd(), dtbDocr.getDataOrd()) && Objects.equals(getDescrizione(), dtbDocr.getDescrizione()) && Objects.equals(getDescrizioneEstesa(), dtbDocr.getDescrizioneEstesa()) && Objects.equals(getFlagEvasoForzato(), dtbDocr.getFlagEvasoForzato()) && Objects.equals(getImportoRiga(), dtbDocr.getImportoRiga()) && Objects.equals(getNumCnf(), dtbDocr.getNumCnf()) && Objects.equals(getNumDocComp(), dtbDocr.getNumDocComp()) && Objects.equals(getNumOrd(), dtbDocr.getNumOrd()) && Objects.equals(getPartitaMag(), dtbDocr.getPartitaMag()) && Objects.equals(getPercGest(), dtbDocr.getPercGest()) && Objects.equals(getPercIspe(), dtbDocr.getPercIspe()) && Objects.equals(getPercOneri(), dtbDocr.getPercOneri()) && Objects.equals(getPercPromo(), dtbDocr.getPercPromo()) && Objects.equals(getPercProv(), dtbDocr.getPercProv()) && Objects.equals(getPercProv2(), dtbDocr.getPercProv2()) && Objects.equals(getPesoLordo(), dtbDocr.getPesoLordo()) && Objects.equals(getPosizione(), dtbDocr.getPosizione()) && Objects.equals(getQtaCnf(), dtbDocr.getQtaCnf()) && Objects.equals(getQtaDoc(), dtbDocr.getQtaDoc()) && Objects.equals(getQtaDoc2(), dtbDocr.getQtaDoc2()) && Objects.equals(getQtaDoc3(), dtbDocr.getQtaDoc3()) && Objects.equals(getRapConv(), dtbDocr.getRapConv()) && Objects.equals(getRigaOrd(), dtbDocr.getRigaOrd()) && Objects.equals(getSconto5(), dtbDocr.getSconto5()) && Objects.equals(getSconto6(), dtbDocr.getSconto6()) && Objects.equals(getSconto7(), dtbDocr.getSconto7()) && Objects.equals(getSconto8(), dtbDocr.getSconto8()) && Objects.equals(getSerDocComp(), dtbDocr.getSerDocComp()) && Objects.equals(getUntDoc(), dtbDocr.getUntDoc()) && Objects.equals(getUntDoc2(), dtbDocr.getUntDoc2()) && Objects.equals(getUntDoc3(), dtbDocr.getUntDoc3()) && Objects.equals(getValGest(), dtbDocr.getValGest()) && Objects.equals(getValIspe(), dtbDocr.getValIspe()) && Objects.equals(getValOneri(), dtbDocr.getValOneri()) && Objects.equals(getValPromo(), dtbDocr.getValPromo()) && Objects.equals(getValProv(), dtbDocr.getValProv()) && Objects.equals(getValProv2(), dtbDocr.getValProv2()) && Objects.equals(getValUnt(), dtbDocr.getValUnt()) && Objects.equals(getValUntIva(), dtbDocr.getValUntIva()) && Objects.equals(getCodMtip(), dtbDocr.getCodMtip()) && Objects.equals(getMatricola(), dtbDocr.getMatricola()) && Objects.equals(getDataInizComp(), dtbDocr.getDataInizComp()) && Objects.equals(getDataFineComp(), dtbDocr.getDataFineComp()) && Objects.equals(getCodKit(), dtbDocr.getCodKit()) && Objects.equals(getCodAlis(), dtbDocr.getCodAlis()) && Objects.equals(getDataInsRow(), dtbDocr.getDataInsRow()) && Objects.equals(getNote(), dtbDocr.getNote()) && Objects.equals(getCodTcolUi(), dtbDocr.getCodTcolUi()) && Objects.equals(getCodTcolUl(), dtbDocr.getCodTcolUl()) && Objects.equals(getColliPedana(), dtbDocr.getColliPedana()) && Objects.equals(getActivityIdRow(), dtbDocr.getActivityIdRow()) && Objects.equals(getIdContratto(), dtbDocr.getIdContratto()) && Objects.equals(getFlagSezione(), dtbDocr.getFlagSezione());
}
@Override
public int hashCode() {
return Objects.hash(getCodAnag(),
getCodDtip(),
getDataDoc(),
getIdRiga(),
getNumDoc(),
getSerDoc(),
getCodAliq(),
getCodAnagComp(),
getCodArtFor(),
getCodCol(),
getCodDtipComp(),
getCodJcom(),
getCodMart(),
getCodMdep(),
getCodPromo(),
getCodTagl(),
getCostoUnt(),
getDataDocComp(),
getDataOrd(),
getDescrizione(),
getDescrizioneEstesa(),
getFlagEvasoForzato(),
getImportoRiga(),
getNumCnf(),
getNumDocComp(),
getNumOrd(),
getPartitaMag(),
getPercGest(),
getPercIspe(),
getPercOneri(),
getPercPromo(),
getPercProv(),
getPercProv2(),
getPesoLordo(),
getPosizione(),
getQtaCnf(),
getQtaDoc(),
getQtaDoc2(),
getQtaDoc3(),
getRapConv(),
getRigaOrd(),
getSconto5(),
getSconto6(),
getSconto7(),
getSconto8(),
getSerDocComp(),
getUntDoc(),
getUntDoc2(),
getUntDoc3(),
getValGest(),
getValIspe(),
getValOneri(),
getValPromo(),
getValProv(),
getValProv2(),
getValUnt(),
getValUntIva(),
getCodMtip(),
getMatricola(),
getDataInizComp(),
getDataFineComp(),
getCodKit(),
getCodAlis(),
getDataInsRow(),
getNote(),
getCodTcolUi(),
getCodTcolUl(),
getColliPedana(),
getActivityIdRow(),
getIdContratto(),
getFlagSezione());
return Objects.hash(getCodAnag(), getCodDtip(), getDataDoc(), getIdRiga(), getNumDoc(), getSerDoc(), getCodAliq(), getCodAnagComp(), getCodArtFor(), getCodCol(), getCodDtipComp(), getCodJcom(), getCodMart(), getCodMdep(), getCodPromo(), getCodTagl(), getCostoUnt(), getDataDocComp(), getDataOrd(), getDescrizione(), getDescrizioneEstesa(), getFlagEvasoForzato(), getImportoRiga(), getNumCnf(), getNumDocComp(), getNumOrd(), getPartitaMag(), getPercGest(), getPercIspe(), getPercOneri(), getPercPromo(), getPercProv(), getPercProv2(), getPesoLordo(), getPosizione(), getQtaCnf(), getQtaDoc(), getQtaDoc2(), getQtaDoc3(), getRapConv(), getRigaOrd(), getSconto5(), getSconto6(), getSconto7(), getSconto8(), getSerDocComp(), getUntDoc(), getUntDoc2(), getUntDoc3(), getValGest(), getValIspe(), getValOneri(), getValPromo(), getValProv(), getValProv2(), getValUnt(), getValUntIva(), getCodMtip(), getMatricola(), getDataInizComp(), getDataFineComp(), getCodKit(), getCodAlis(), getDataInsRow(), getNote(), getCodTcolUi(), getCodTcolUl(), getColliPedana(), getActivityIdRow(), getIdContratto(), getFlagSezione());
}
}

View File

@@ -4,7 +4,10 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.Date;
@@ -13,6 +16,8 @@ import java.util.Date;
@JsonTypeName(DtbDocs.ENTITY)
public class DtbDocs extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "dtb_docs";
private static final long serialVersionUID = 1L;
@@ -46,22 +51,22 @@ public class DtbDocs extends EntityBase {
@SqlField(value = "cod_aliq", maxLength = 5, nullable = false)
private String codAliq;
@SqlField(value = "cod_anag_comp", maxLength = 5, nullable = true)
@SqlField(value = "cod_anag_comp", maxLength = 5)
private String codAnagComp;
@SqlField(value = "cod_dtip_comp", maxLength = 5, nullable = true)
@SqlField(value = "cod_dtip_comp", maxLength = 5)
private String codDtipComp;
@SqlField(value = "cod_jcom", maxLength = 10, nullable = true)
@SqlField(value = "cod_jcom", maxLength = 10)
private String codJcom;
@SqlField(value = "cod_spes", maxLength = 5, nullable = false)
private String codSpes;
@SqlField(value = "data_doc_comp", nullable = true)
@SqlField(value = "data_doc_comp")
private Date dataDocComp;
@SqlField(value = "data_ord", nullable = true)
@SqlField(value = "data_ord")
private Date dataOrd;
@SqlField(value = "descrizione", maxLength = 40, nullable = false)
@@ -71,33 +76,33 @@ public class DtbDocs extends EntityBase {
@SqlField(value = "importo", nullable = false)
private BigDecimal importo;
@SqlField(value = "num_doc_comp", nullable = true)
@SqlField(value = "num_doc_comp")
private Integer numDocComp;
@SqlField(value = "num_ord", nullable = true)
@SqlField(value = "num_ord")
private Integer numOrd;
@SqlField(value = "perc_sco", nullable = false, defaultObjectValue = "0")
private BigDecimal percSco;
@FireRecalc
@SqlField(value = "qta", nullable = true)
@SqlField(value = "qta")
private BigDecimal qta;
@SqlField(value = "riga_ord", nullable = true)
@SqlField(value = "riga_ord")
private Integer rigaOrd;
@SqlField(value = "ser_doc_comp", maxLength = 2, nullable = true)
@SqlField(value = "ser_doc_comp", maxLength = 2)
private String serDocComp;
@SqlField(value = "unt_mis", maxLength = 3, nullable = true)
@SqlField(value = "unt_mis", maxLength = 3)
private String untMis;
@SqlField(value = "note_riga", maxLength = 8000, nullable = true)
@SqlField(value = "note_riga", maxLength = 8000)
private String noteRiga;
@FireRecalc
@SqlField(value = "val_unt", nullable = true)
@SqlField(value = "val_unt")
private BigDecimal valUnt;
@JsonProperty
@@ -122,7 +127,7 @@ public class DtbDocs extends EntityBase {
private String gestione;
public DtbDocs() {
super();
super(logger);
}
public String getCodAnag() {

File diff suppressed because one or more lines are too long

View File

@@ -1,10 +1,12 @@
package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import it.integry.ems_model.types.OperationType;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.util.Date;
@Master
@@ -14,49 +16,51 @@ import java.util.Date;
public class DtbDoctCambioTipoDoc extends EntityBase {
public DtbDoctCambioTipoDoc() {
super();
super(logger);
}
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "dtb_doct_cambio_tipo_doc";
@PK
@Identity
@SqlField(value = "id")
@SqlField(value = "id", nullable = false)
private Long id;
@SqlField(value = "cod_anag")
@SqlField(value = "cod_anag", maxLength = 5, nullable = false)
private String codAnag;
@SqlField(value = "cod_dtip")
@SqlField(value = "cod_dtip", maxLength = 5, nullable = false)
private String codDtip;
@SqlField(value = "cod_dtip_new")
@SqlField(value = "cod_dtip_new", maxLength = -1, nullable = false)
private String codDtipNew;
@SqlField(value = "data_chk")
@SqlField(value = "data_chk", nullable = false)
private Date dataChk;
@SqlField(value = "data_doc")
@SqlField(value = "data_doc", nullable = false)
private Date dataDoc;
@SqlField(value = "data_cmov")
@SqlField(value = "data_cmov", nullable = false)
private Date dataCmov;
@SqlField(value = "id_allegato")
@SqlField(value = "id_allegato", maxLength = 40)
private String idAllegato;
@SqlField(value = "num_doc")
@SqlField(value = "num_doc", nullable = false)
private Integer numDoc;
@SqlField(value = "ser_doc")
@SqlField(value = "ser_doc", maxLength = 2, nullable = false)
private String serDoc;
@SqlField(value = "user_name")
@SqlField(value = "user_name", maxLength = 40, nullable = false)
private String userName;
@SqlField(value = "num_doc_forn")
@SqlField(value = "num_doc_forn", maxLength = 40)
private String numDocForn;
@MapToTable(value = "ordinamento")

View File

@@ -4,7 +4,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.common.var.CommonConstants;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.util.Date;
@Master
@@ -13,6 +16,8 @@ import java.util.Date;
@JsonTypeName(DtbDocuLog.ENTITY)
public class DtbDocuLog extends EntityBase {
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "dtb_docu_log";
private static final long serialVersionUID = 1L;
@@ -47,7 +52,7 @@ public class DtbDocuLog extends EntityBase {
@SqlField(value = "data_doc", nullable = false)
private Date dataDoc;
@SqlField(value = "note", maxLength = 1024, nullable = true)
@SqlField(value = "note", maxLength = 1024)
private String note;
@SqlField(value = "num_doc", nullable = false)
@@ -63,7 +68,7 @@ public class DtbDocuLog extends EntityBase {
private Boolean flagErrore;
public DtbDocuLog() {
super();
super(logger);
}
public Date getDateTimeLog() {

View File

@@ -6,7 +6,10 @@ import it.integry.ems_model.base.EntityBase;
import it.integry.ems_model.db.ResultSetMapper;
import it.integry.ems_model.types.OperationType;
import it.integry.ems_model.utility.UtilityDB;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
@@ -19,49 +22,51 @@ import java.util.List;
public class DtbFatturePassive extends EntityBase {
public DtbFatturePassive() {
super();
super(logger);
}
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "dtb_fatture_passive";
@PK
@SqlField(value = "id_attach", maxLength = 40, nullable = false)
private String idAttach;
@SqlField(value = "data_doc", nullable = true)
@SqlField(value = "data_doc")
private Date dataDoc;
@SqlField(value = "iban", maxLength = 40, nullable = true)
@SqlField(value = "iban", maxLength = 40)
private String iban;
@SqlField(value = "num_doc", maxLength = 40, nullable = true)
@SqlField(value = "num_doc", maxLength = 40)
private String numDoc;
@SqlField(value = "part_iva", maxLength = 20, nullable = true)
@SqlField(value = "part_iva", maxLength = 20)
private String partIva;
@SqlField(value = "tot_doc", nullable = true)
@SqlField(value = "tot_doc")
private BigDecimal totDoc;
@SqlField(value = "cod_dtip", maxLength = 4, nullable = true)
@SqlField(value = "cod_dtip", maxLength = 4)
private String codDtip;
@SqlField(value = "cod_anag", maxLength = 5, nullable = true)
@SqlField(value = "cod_anag", maxLength = 5)
private String codAnag;
@SqlField(value = "identificativo_sdi", maxLength = 15, nullable = true)
@SqlField(value = "identificativo_sdi", maxLength = 15)
private String identificativoSdi;
@EntityChild
private List<DtbFatturePassiveScad> dtbFatturePassiveScad;
private List<DtbFatturePassiveScad> dtbFatturePassiveScad = new ArrayList<>();
@EntityChild
private List<DtbFatturePassiveIva> dtbFatturePassiveIva;
private List<DtbFatturePassiveIva> dtbFatturePassiveIva = new ArrayList<>();
@EntityChild
private List<DtbFatturePassiveDdt> dtbFatturePassiveDdt;
private List<DtbFatturePassiveDdt> dtbFatturePassiveDdt = new ArrayList<>();
public String getIdAttach() {
return idAttach;

View File

@@ -3,7 +3,10 @@ package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import java.util.Date;
@PropertyReactive
@@ -13,6 +16,8 @@ public class DtbFatturePassiveDdt extends EntityBase {
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "dtb_fatture_passive_ddt";
@Identity
@@ -24,12 +29,16 @@ public class DtbFatturePassiveDdt extends EntityBase {
@SqlField(value = "id_attach", maxLength = 40, nullable = false)
private String idAttach;
@SqlField(value = "numero", maxLength = 40, nullable = false)
@SqlField(value = "numero", maxLength = 40)
private String numero;
@SqlField(value = "data", nullable = false)
private Date data;
public DtbFatturePassiveDdt() {
super(logger);
}
public Long getId() {
return id;
}

View File

@@ -1,10 +1,12 @@
package it.integry.ems_model.entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
import it.integry.ems_model.annotation.*;
import it.integry.ems_model.base.EntityBase;
import it.integry.ems_model.types.OperationType;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.math.BigDecimal;
@PropertyReactive
@@ -14,6 +16,8 @@ public class DtbFatturePassiveIva extends EntityBase {
private static final long serialVersionUID = 1L;
private final static Logger logger = LogManager.getLogger();
public static final String ENTITY = "dtb_fatture_passive_iva";
@Identity
@@ -25,13 +29,13 @@ public class DtbFatturePassiveIva extends EntityBase {
@SqlField(value = "id_attach", maxLength = 40, nullable = false)
private String idAttach;
@SqlField(value = "perc_iva", defaultObjectValue = "0", nullable = false)
@SqlField(value = "perc_iva", nullable = false, defaultObjectValue = "0")
private BigDecimal percIva;
@SqlField(value = "imponibile", defaultObjectValue = "0", nullable = false)
@SqlField(value = "imponibile", nullable = false, defaultObjectValue = "0")
private BigDecimal imponibile;
@SqlField(value = "imposta", defaultObjectValue = "0", nullable = false)
@SqlField(value = "imposta", nullable = false, defaultObjectValue = "0")
private BigDecimal imposta;
@SqlField(value = "natura", maxLength = 5)
@@ -40,6 +44,10 @@ public class DtbFatturePassiveIva extends EntityBase {
@SqlField(value = "esigibilita", maxLength = 1)
private String esigibilita;
public DtbFatturePassiveIva() {
super(logger);
}
public Long getId() {
return id;
}

Some files were not shown because too many files have changed in this diff Show More