inserito campo flag_bio nella dtb_note_doc
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-11-19 08:52:20 +01:00
parent b587e38cc8
commit f60c3337b1
2 changed files with 31 additions and 0 deletions

View File

@@ -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_20251119084719 extends BaseMigration implements MigrationModelInterface {
@Override
public void up() throws Exception {
if (isHistoryDB())
return;
executeStatement("alter table dtb_note_doc add flag_bio bit not null default 0");
}
@Override
public void down() throws Exception {
}
}

View File

@@ -41,6 +41,9 @@ public class DtbNoteDoc extends EntityBase {
@SqlField(value = "data_fine")
private Date dataFine;
@SqlField(value = "flag_bio", nullable = false, defaultObjectValue = "0")
private Boolean flagBio;
@EntityChild
private List<DrlTipiNoteDoc> drlTipiNoteDoc = new ArrayList<>();
@@ -78,6 +81,15 @@ public class DtbNoteDoc extends EntityBase {
this.dataFine = dataFine;
}
public Boolean getFlagBio() {
return flagBio;
}
public DtbNoteDoc setFlagBio(Boolean flagBio) {
this.flagBio = flagBio;
return this;
}
public List<DrlTipiNoteDoc> getDrlTipiNoteDoc() {
return drlTipiNoteDoc;
}