inserito campo flag_bio nella dtb_note_doc
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_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 {
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user