- inserito entity child gtb_tipi_paga_intercode in gtb_tipi_paga

- modificate entity GtbTipiPagaIntercode e GtbBancAziIntercode
This commit is contained in:
2024-09-24 15:23:44 +02:00
parent 617f28594d
commit 835633ca4c
3 changed files with 23 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
@Master()
@PropertyReactive()
@Table(value = GtbBancAziIntercode.ENTITY)
@JsonTypeName(value = GtbBancAziIntercode.ENTITY)

View File

@@ -1,16 +1,15 @@
package it.integry.ems_model.entity;
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.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
@PropertyReactive
@@ -70,6 +69,9 @@ public class GtbTipiPaga extends EntityBase {
@SqlField(value = "tipo_tracciato", maxLength = 30)
private String tipoTracciato;
@EntityChild
private List<GtbTipiPagaIntercode> gtbTipiPagaIntercode = new ArrayList<>();
public GtbTipiPaga() {
super(logger);
}
@@ -193,4 +195,19 @@ public class GtbTipiPaga extends EntityBase {
public void setTipoTracciato(String tipoTracciato) {
this.tipoTracciato = tipoTracciato;
}
public List<GtbTipiPagaIntercode> getGtbTipiPagaIntercode() {
return gtbTipiPagaIntercode;
}
public void setGtbTipiPagaIntercode(List<GtbTipiPagaIntercode> gtbTipiPagaIntercode) {
this.gtbTipiPagaIntercode = gtbTipiPagaIntercode;
}
@Override
protected void deleteChilds() throws Exception {
GtbTipiPagaIntercode gtbTipiPagaIntercode = new GtbTipiPagaIntercode();
gtbTipiPagaIntercode.deleteAllEntities(connection, this);
}
}

View File

@@ -7,7 +7,7 @@ import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kie.api.definition.type.PropertyReactive;
@Master()
@PropertyReactive()
@Table(value = GtbTipiPagaIntercode.ENTITY)
@JsonTypeName(value = GtbTipiPagaIntercode.ENTITY)