aggiunto campo causale_reso nella ntb_docr
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20240715105345 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
executeStatement("ALTER TABLE ntb_docr\n" +
|
||||
" ADD causale_reso VARCHAR(5);");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -90,6 +90,9 @@ public class NtbDocr extends EntityBase {
|
||||
@SqlField(value = "data_ord", nullable = true)
|
||||
private Date dataOrd;
|
||||
|
||||
@SqlField(value = "causale_reso", maxLength = 5, nullable = true)
|
||||
private String causaleReso;
|
||||
|
||||
@ImportFromParent
|
||||
private String causale;
|
||||
|
||||
@@ -337,6 +340,14 @@ public class NtbDocr extends EntityBase {
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getCausaleReso() {
|
||||
return causaleReso;
|
||||
}
|
||||
|
||||
public void setCausaleReso(String causaleReso) {
|
||||
this.causaleReso = causaleReso;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void insertChilds() throws Exception {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user