Merge remote-tracking branch 'origin/develop' into develop
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,20 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20250317122246 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
executeStatement("alter table mtb_partita_mag add partita_mag_prod varchar(20)",
|
||||
"alter table mtb_partita_mag add data_prod datetime");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
}
|
||||
}
|
||||
@@ -98,6 +98,12 @@ public class MtbPartitaMag extends EntityBase implements EquatableEntityInterfac
|
||||
@SqlField(value = "nazione_prov", maxLength = 3)
|
||||
private String nazioneProv;
|
||||
|
||||
@SqlField(value = "partita_mag_prod", maxLength = 20)
|
||||
private String partitaMagProd;
|
||||
|
||||
@SqlField(value = "data_prod")
|
||||
private Date dataProd;
|
||||
|
||||
@EntityChild
|
||||
private List<MtbPartitaMagCarat> mtbPartitaMagCarat = new ArrayList<>();
|
||||
|
||||
@@ -321,6 +327,24 @@ public class MtbPartitaMag extends EntityBase implements EquatableEntityInterfac
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getPartitaMagProd() {
|
||||
return partitaMagProd;
|
||||
}
|
||||
|
||||
public MtbPartitaMag setPartitaMagProd(String partitaMagProd) {
|
||||
this.partitaMagProd = partitaMagProd;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Date getDataProd() {
|
||||
return dataProd;
|
||||
}
|
||||
|
||||
public MtbPartitaMag setDataProd(Date dataProd) {
|
||||
this.dataProd = dataProd;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void insertChilds() throws Exception {
|
||||
for (MtbPartitaMagCarat mtbPartitaMagCarat : getMtbPartitaMagCarat()) {
|
||||
|
||||
Reference in New Issue
Block a user