Prima parte del servizio di Versamento Materiali WMS.
Convertito campo MtbColt.dataColloRif in LocalDate.
This commit is contained in:
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.core.JsonGenerator;
|
||||
import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.SerializationFeature;
|
||||
import com.fasterxml.jackson.databind.SerializerProvider;
|
||||
import com.fasterxml.jackson.databind.module.SimpleModule;
|
||||
import com.fasterxml.jackson.databind.ser.BeanPropertyWriter;
|
||||
@@ -141,6 +142,8 @@ public class ResponseJSONObjectMapper extends ObjectMapper {
|
||||
setupEntityModules(simpleModule);
|
||||
registerModule(simpleModule);
|
||||
|
||||
configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
|
||||
|
||||
configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
|
||||
configure(DeserializationFeature.FAIL_ON_IGNORED_PROPERTIES, false);
|
||||
configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, false);
|
||||
|
||||
@@ -224,10 +224,12 @@ public class BasicConnectionPool {
|
||||
}
|
||||
|
||||
private boolean handleConnectionRelease(DataSource ds)
|
||||
throws SQLException {
|
||||
throws SQLException, IOException {
|
||||
String connectionName = ds.getApplicationName();
|
||||
String dbName = ds.getDbName();
|
||||
|
||||
ds.getConnection().rollback();
|
||||
|
||||
if (connectionName.startsWith(ExtraConnectionNamePrefix)) {
|
||||
activeConnectionNames.get(dbName).remove(connectionName);
|
||||
ds.forceClose();
|
||||
|
||||
@@ -85,7 +85,7 @@ public class MtbColr extends EntityBase implements EquatableEntityInterface<MtbC
|
||||
private LocalDate dataOrd;
|
||||
|
||||
@SqlField(value = "data_collo_rif")
|
||||
private Date dataColloRif;
|
||||
private LocalDate dataColloRif;
|
||||
|
||||
@SqlField(value = "qta_cnf", nullable = false, defaultObjectValue = "1")
|
||||
private BigDecimal qtaCnf;
|
||||
@@ -339,11 +339,11 @@ public class MtbColr extends EntityBase implements EquatableEntityInterface<MtbC
|
||||
return this;
|
||||
}
|
||||
|
||||
public Date getDataColloRif() {
|
||||
public LocalDate getDataColloRif() {
|
||||
return dataColloRif;
|
||||
}
|
||||
|
||||
public MtbColr setDataColloRif(Date dataColloRif) {
|
||||
public MtbColr setDataColloRif(LocalDate dataColloRif) {
|
||||
this.dataColloRif = dataColloRif;
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user