inseriti campi costi_art_obb e ricavi_art_obb nella mtb_grup
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_20250515151500 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
executeStatement("ALTER TABLE mtb_grup ADD costi_art_obb BIT NOT NULL DEFAULT 0" ,
|
||||
"ALTER TABLE mtb_grup ADD ricavi_art_obb BIT NOT NULL DEFAULT 0 ");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
}
|
||||
}
|
||||
@@ -51,6 +51,12 @@ public class MtbGrup extends EntityBase implements EquatableEntityInterface<MtbG
|
||||
@SqlField(value = "flag_tracciabilita", nullable = false, defaultObjectValue = "0")
|
||||
private Boolean flagTracciabilita;
|
||||
|
||||
@SqlField(value = "costi_art_obb", nullable = false, defaultObjectValue = "0")
|
||||
private Boolean costiArtObb;
|
||||
|
||||
@SqlField(value = "ricavi_art_obb", nullable = false, defaultObjectValue = "0")
|
||||
private Boolean ricaviArtObb;
|
||||
|
||||
@EntityChild
|
||||
private List<MtbSgrp> mtbSgrp = new ArrayList<>();
|
||||
|
||||
@@ -133,20 +139,32 @@ public class MtbGrup extends EntityBase implements EquatableEntityInterface<MtbG
|
||||
return this;
|
||||
}
|
||||
|
||||
public Boolean getFlagAttivo() {
|
||||
return flagAttivo;
|
||||
}
|
||||
public Boolean getFlagAttivo() { return flagAttivo; }
|
||||
|
||||
public void setFlagAttivo(Boolean flagAttivo) {
|
||||
public MtbGrup setFlagAttivo(Boolean flagAttivo) {
|
||||
this.flagAttivo = flagAttivo;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Boolean getFlagTracciabilita() {
|
||||
return flagTracciabilita;
|
||||
}
|
||||
public Boolean getFlagTracciabilita() { return flagTracciabilita;}
|
||||
|
||||
public void setFlagTracciabilita(Boolean flagTracciabilita) {
|
||||
public MtbGrup setFlagTracciabilita(Boolean flagTracciabilita) {
|
||||
this.flagTracciabilita = flagTracciabilita;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Boolean getCostiArtObb() { return costiArtObb; }
|
||||
|
||||
public MtbGrup setCostiArtObb(Boolean costiArtObb) {
|
||||
this.costiArtObb = costiArtObb;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Boolean getRicaviArtObb() { return ricaviArtObb; }
|
||||
|
||||
public MtbGrup setRicaviArtObb(Boolean ricaviArtObb) {
|
||||
this.ricaviArtObb = ricaviArtObb;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user