inserito campo archiviazione_elettronica nella vtb_vett
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -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_20250519094505 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
executeStatement("ALTER TABLE vtb_vett ADD archiviazione_elettronica BIT NOT NULL DEFAULT 0");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
}
|
||||
}
|
||||
@@ -3,12 +3,13 @@ package it.integry.ems_model.entity;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import it.integry.ems_model.annotation.*;
|
||||
import it.integry.ems_model.base.EntityBase;
|
||||
import org.kie.api.definition.type.PropertyReactive;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.kie.api.definition.type.PropertyReactive;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Master
|
||||
@PropertyReactive
|
||||
@@ -77,6 +78,9 @@ public class VtbVett extends EntityBase {
|
||||
@SqlField(value = "num_autoriz", maxLength = 40)
|
||||
private String numAutoriz;
|
||||
|
||||
@SqlField(value = "archiviazione_elettronica", nullable = false, defaultObjectValue = "0")
|
||||
private Boolean archiviazioneElettronica;
|
||||
|
||||
@EntityChild
|
||||
private List<VtbVetr> vtbVetr = new ArrayList<>();
|
||||
|
||||
@@ -259,6 +263,15 @@ public class VtbVett extends EntityBase {
|
||||
this.vtbVettTarghe = vtbVettTarghe;
|
||||
}
|
||||
|
||||
public Boolean getArchiviazioneElettronica() {
|
||||
return archiviazioneElettronica;
|
||||
}
|
||||
|
||||
public VtbVett setArchiviazioneElettronica(Boolean archiviazioneElettronica) {
|
||||
this.archiviazioneElettronica = archiviazioneElettronica;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void deleteChilds() throws Exception {
|
||||
VtbVetr vtbVetr = new VtbVetr();
|
||||
|
||||
Reference in New Issue
Block a user