inserito campo altre_mansioni nella jtb_flav
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_20240924152410 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
executeStatement("alter table jtb_flav add altre_mansioni varchar(8000)");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -3,13 +3,14 @@ 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.Date;
|
||||
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.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Master
|
||||
@PropertyReactive
|
||||
@@ -156,8 +157,12 @@ public class JtbFlav extends EntityBase {
|
||||
@SqlField(value = "iban", maxLength = 40)
|
||||
private String iban;
|
||||
|
||||
@SqlField(value = "altre_mansioni", maxLength = 8000)
|
||||
private String altre_mansioni;
|
||||
|
||||
private String precode;
|
||||
|
||||
|
||||
@EntityChild
|
||||
private List<JtbFlavEventi> jtbFlavEventi = new ArrayList<>();
|
||||
|
||||
@@ -534,6 +539,14 @@ public class JtbFlav extends EntityBase {
|
||||
this.jtbFlavEventi = jtbFlavEventi;
|
||||
}
|
||||
|
||||
public String getAltre_mansioni() {
|
||||
return altre_mansioni;
|
||||
}
|
||||
|
||||
public void setAltre_mansioni(String altre_mansioni) {
|
||||
this.altre_mansioni = altre_mansioni;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void insertChilds() throws Exception {
|
||||
for (JtbFlavEventi jtbFlavEventi : getJtbFlavEventi()) {
|
||||
|
||||
Reference in New Issue
Block a user