inserito campo cod_dtip_sped nella atb_forn
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-02-18 12:15:59 +01:00
parent 3eb6f73934
commit d290d05674
2 changed files with 30 additions and 0 deletions

View File

@@ -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_20250218120808 extends BaseMigration implements MigrationModelInterface {
@Override
public void up() throws Exception {
if (isHistoryDB())
return;
executeStatement("ALTER TABLE atb_forn ADD cod_dtip_sped VARCHAR(5)",
"ALTER TABLE atb_forn ADD CONSTRAINT [FK_atb_forn_dtb_tipi] FOREIGN KEY (cod_dtip_sped) REFERENCES dtb_tipi(cod_dtip)");
}
@Override
public void down() throws Exception {
}
}

View File

@@ -112,6 +112,9 @@ public class AtbForn extends EntityBase implements EquatableEntityInterface<AtbF
@SqlField(value = "flag_autofattura", maxLength = 1, defaultObjectValue = "N")
private String flagAutofattura;
@SqlField(value = "cod_dtip_sped", maxLength = 5)
private String codDtipSped;
@Priority(1)
private GtbAnag gtbAnag;
@@ -424,6 +427,13 @@ public class AtbForn extends EntityBase implements EquatableEntityInterface<AtbF
return this;
}
public String getCodDtipSped() { return codDtipSped; }
public AtbForn setCodDtipSped(String codDtipSped) {
this.codDtipSped = codDtipSped;
return this;
}
@Override
public int hashCodeKey() {
return Objects.hash(getCodAnag());