Aggiunto campo flag_bio per gestire dicitura bio in stampa documenti
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20250307170225 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
executeStatement("alter table mtb_stip add flag_bio bit not null default 0");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
}
|
||||
}
|
||||
@@ -52,6 +52,9 @@ public class MtbStip extends EntityBase {
|
||||
@SqlField(value = "expr_calc_descr_estesa", maxLength = 8000)
|
||||
private String exprCalcDescrEstesa;
|
||||
|
||||
@SqlField(value = "flag_bio", nullable = false, defaultObjectValue = "0")
|
||||
private Boolean flagBio;
|
||||
|
||||
@EntityChild
|
||||
private List<MtbTipiCarat> mtbTipiCarat = new ArrayList<>();
|
||||
|
||||
@@ -131,6 +134,14 @@ public class MtbStip extends EntityBase {
|
||||
this.exprCalcDescrEstesa = exprCalcDescrEstesa;
|
||||
}
|
||||
|
||||
public Boolean getFlagBio() {
|
||||
return flagBio;
|
||||
}
|
||||
|
||||
public void setFlagBio(Boolean flagBio) {
|
||||
this.flagBio = flagBio;
|
||||
}
|
||||
|
||||
public List<MtbTipiCarat> getMtbTipiCarat() {
|
||||
return mtbTipiCarat;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user