aggiunto flag_stampa_pkl nella gtb_anag_note
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-07-29 10:50:44 +02:00
parent 7eddb4fe7c
commit f5b812ebdf
2 changed files with 31 additions and 1 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_20250729103953 extends BaseMigration implements MigrationModelInterface {
@Override
public void up() throws Exception {
if (isHistoryDB())
return;
executeStatement("alter table gtb_anag_note add flag_stampa_pkl bit not null default 0");
}
@Override
public void down() throws Exception {
}
}

View File

@@ -11,7 +11,6 @@ import org.kie.api.definition.type.PropertyReactive;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@PropertyReactive
@@ -58,6 +57,9 @@ public class GtbAnagNote extends EntityBase {
@SqlField(value = "tipo_note", maxLength = 40)
private String tipoNote;
@SqlField(value = "flag_stampa_pkl", nullable = false, defaultObjectValue = "0")
private Boolean flagStampaPkl;
@JsonProperty
private String idAttach;
@@ -176,6 +178,15 @@ public class GtbAnagNote extends EntityBase {
return this;
}
public Boolean getFlagStampaPkl() {
return flagStampaPkl;
}
public GtbAnagNote setFlagStampaPkl(Boolean flagStampaPkl) {
this.flagStampaPkl = flagStampaPkl;
return this;
}
@Override
protected void insertChilds() throws Exception {
for (GrlAnagNoteFiles grlAnagNoteFiles : getGrlAnagNoteFiles()) {