Finish Hotfix-90
This commit is contained in:
5
.idea/runConfigurations/Tomcat.xml
generated
5
.idea/runConfigurations/Tomcat.xml
generated
@@ -1,7 +1,6 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Tomcat" type="#com.intellij.j2ee.web.tomcat.TomcatRunConfigurationFactory" factoryName="Local" APPLICATION_SERVER_NAME="Tomcat" ALTERNATIVE_JRE_ENABLED="false" ALTERNATIVE_JRE_PATH="1.8" nameIsGenerated="true">
|
||||
<option name="COMMON_VM_ARGUMENTS" value="-Xms512m -Xmx2048m" />
|
||||
<option name="UPDATING_POLICY" value="redeploy-artifacts" />
|
||||
<deployment>
|
||||
<artifact name="ems-engine:war exploded">
|
||||
<settings>
|
||||
@@ -115,7 +114,9 @@
|
||||
</ConfigurationWrapper>
|
||||
<method v="2">
|
||||
<option name="Make" enabled="true" />
|
||||
<option name="BuildArtifacts" enabled="false" />
|
||||
<option name="BuildArtifacts" enabled="true">
|
||||
<artifact name="ems-engine:war exploded" />
|
||||
</option>
|
||||
</method>
|
||||
</configuration>
|
||||
</component>
|
||||
@@ -0,0 +1,26 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20241118095742 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
executeStatement(
|
||||
"ALTER TABLE jtb_rlavr ADD inserito_da varchar(40)",
|
||||
"ALTER TABLE jtb_rlavr ADD data_ins datetime",
|
||||
"ALTER TABLE jtb_rlavr ADD modificato_da varchar(40)",
|
||||
"ALTER TABLE jtb_rlavr ADD data_mod datetime"
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -6,7 +6,6 @@ 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.ArrayList;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
@@ -113,6 +112,19 @@ public class JtbRLavr extends EntityBase {
|
||||
@SqlField(value = "id_posizione")
|
||||
private Long idPosizione;
|
||||
|
||||
@SqlField(value = "inserito_da")
|
||||
private String inseritoDa;
|
||||
|
||||
@SqlField(value = "data_ins")
|
||||
private Date dataIns;
|
||||
|
||||
@SqlField(value = "modificato_da")
|
||||
private String modificatoDa;
|
||||
|
||||
@SqlField(value = "data_mod")
|
||||
private Date dataMod;
|
||||
|
||||
|
||||
public JtbRLavr() {
|
||||
super(logger);
|
||||
}
|
||||
@@ -377,4 +389,40 @@ public class JtbRLavr extends EntityBase {
|
||||
this.idPosizione = idPosizione;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getInseritoDa() {
|
||||
return inseritoDa;
|
||||
}
|
||||
|
||||
public JtbRLavr setInseritoDa(String inseritoDa) {
|
||||
this.inseritoDa = inseritoDa;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Date getDataIns() {
|
||||
return dataIns;
|
||||
}
|
||||
|
||||
public JtbRLavr setDataIns(Date dataIns) {
|
||||
this.dataIns = dataIns;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getModificatoDa() {
|
||||
return modificatoDa;
|
||||
}
|
||||
|
||||
public JtbRLavr setModificatoDa(String modificatoDa) {
|
||||
this.modificatoDa = modificatoDa;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Date getDataMod() {
|
||||
return dataMod;
|
||||
}
|
||||
|
||||
public JtbRLavr setDataMod(Date dataMod) {
|
||||
this.dataMod = dataMod;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -216,4 +216,5 @@ when
|
||||
then
|
||||
List<JtbRLavt> jtbRlavt = ConfigActivityRules.completeJtbRlavtActivity(conn, $entity);
|
||||
modify ( $entity ) { setJtbRLavt(jtbRlavt), setEffectiveEndtime($entity.getEffectiveEndtime() == null? new Date(): $entity.getEffectiveEndtime()) }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -164,6 +164,27 @@ then
|
||||
modify ( $rLavR ) { setaOra(aOra) }
|
||||
end
|
||||
|
||||
rule "completeDatiInsJtbRlavr"
|
||||
no-loop
|
||||
when
|
||||
eval(completeRulesEnabled)
|
||||
$entity : JtbRLavr(operation == OperationType.INSERT || (operation == OperationType.INSERT_OR_UPDATE && inseritoDa== null))
|
||||
then
|
||||
modify ( $entity ) {
|
||||
setInseritoDa(username), setDataIns(new Date())
|
||||
}
|
||||
end
|
||||
|
||||
rule "completeDatiModJtbRlavr"
|
||||
no-loop
|
||||
when
|
||||
eval(completeRulesEnabled)
|
||||
$entity : JtbRLavr(operation != OperationType.DELETE )
|
||||
then
|
||||
modify ( $entity ) {
|
||||
setModificatoDa(username), setDataMod(new Date())
|
||||
}
|
||||
end
|
||||
|
||||
//---------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user