aggiunto cod_paga nella dtb_tipi
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20250807171229 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
executeStatement("ALTER TABLE dtb_tipi add cod_paga varchar(5), \n" +
|
||||
"\tFOREIGN KEY (cod_paga) REFERENCES gtb_paga(cod_paga);");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
}
|
||||
}
|
||||
@@ -216,6 +216,9 @@ public class DtbTipi extends EntityBase {
|
||||
@SqlField(value = "flag_set_num_prot", nullable = false, defaultObjectValue = "0")
|
||||
private Boolean flagSetNumProt;
|
||||
|
||||
@SqlField(value = "cod_paga", maxLength = 5)
|
||||
private String codPaga;
|
||||
|
||||
@EntityChild
|
||||
private List<DtbTipiAnag> dtbTipiAnag = new ArrayList<>();
|
||||
|
||||
@@ -849,6 +852,15 @@ public class DtbTipi extends EntityBase {
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getCodPaga() {
|
||||
return codPaga;
|
||||
}
|
||||
|
||||
public DtbTipi setCodPaga(String codPaga) {
|
||||
this.codPaga = codPaga;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void deleteChilds() throws Exception {
|
||||
DtbTipiAnag dtbTipiAnag = new DtbTipiAnag();
|
||||
|
||||
Reference in New Issue
Block a user