Aggiunta campo Flag_calc_peso_intra
This commit is contained in:
@@ -1,16 +1,21 @@
|
||||
package it.integry.ems.migration.model;import it.integry.ems.migration._base.BaseMigration;
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20240513175747 extends BaseMigration implements MigrationModelInterface{
|
||||
public class Migration_20240513175747 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up()throws Exception {
|
||||
if(isHistoryDB())
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
executeStatement("update dtb_tipi set flag_calc_peso_intra = 'N';");
|
||||
executeStatement("ALTER TABLE dtb_tipi ALTER COLUMN flag_calc_peso_intra varchar(1) not null;");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down()throws Exception{
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@ import it.integry.ems_model.annotation.*;
|
||||
import it.integry.ems_model.base.EntityBase;
|
||||
import it.integry.ems_model.utility.UtilityString;
|
||||
import org.kie.api.definition.type.PropertyReactive;
|
||||
|
||||
import javax.persistence.criteria.CriteriaBuilder;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@@ -201,6 +203,9 @@ public class DtbTipi extends EntityBase {
|
||||
@SqlField(value = "flag_cons_consumi", nullable = false, defaultObjectValue = "0")
|
||||
private Boolean flagConsConsumi;
|
||||
|
||||
@SqlField(value = "flag_sezione", nullable = false)
|
||||
private String flagSezione;
|
||||
|
||||
@EntityChild
|
||||
private List<DtbTipiAnag> dtbTipiAnag;
|
||||
|
||||
@@ -710,6 +715,15 @@ public class DtbTipi extends EntityBase {
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getFlagSezione() {
|
||||
return flagSezione;
|
||||
}
|
||||
|
||||
public DtbTipi setFlagSezione(String flagSezione) {
|
||||
this.flagSezione = flagSezione;
|
||||
return this;
|
||||
}
|
||||
|
||||
public List<DtbTipiAnag> getDtbTipiAnag() {
|
||||
return dtbTipiAnag;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user