Finish FixInsertCharacter
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:
@@ -134,7 +134,7 @@ public abstract class EntityBase implements Serializable, Cloneable, EntityInter
|
|||||||
this.type = null;
|
this.type = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(logger != null)
|
if (logger != null)
|
||||||
this.logger = logger;
|
this.logger = logger;
|
||||||
else
|
else
|
||||||
this.logger = LogManager.getLogger();
|
this.logger = LogManager.getLogger();
|
||||||
@@ -824,7 +824,7 @@ public abstract class EntityBase implements Serializable, Cloneable, EntityInter
|
|||||||
sqlField = split[1];
|
sqlField = split[1];
|
||||||
} else entity = this;
|
} else entity = this;
|
||||||
|
|
||||||
if(entity == null)
|
if (entity == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (entity instanceof List) {
|
if (entity instanceof List) {
|
||||||
@@ -1946,6 +1946,10 @@ public abstract class EntityBase implements Serializable, Cloneable, EntityInter
|
|||||||
} else {
|
} else {
|
||||||
Object finalValue = SqlFieldHolder.getSqlValueFieldAsObject(originalObject == null ? defaultValue : originalObject, sqlField.trimSpaces());
|
Object finalValue = SqlFieldHolder.getSqlValueFieldAsObject(originalObject == null ? defaultValue : originalObject, sqlField.trimSpaces());
|
||||||
|
|
||||||
|
if (finalValue instanceof Character) {
|
||||||
|
finalValue = finalValue.toString();
|
||||||
|
}
|
||||||
|
|
||||||
if (finalValue instanceof String) {
|
if (finalValue instanceof String) {
|
||||||
if (maxValueLength >= 0 &&
|
if (maxValueLength >= 0 &&
|
||||||
!((String) finalValue).equalsIgnoreCase(EmsRestConstants.NULL) &&
|
!((String) finalValue).equalsIgnoreCase(EmsRestConstants.NULL) &&
|
||||||
|
|||||||
Reference in New Issue
Block a user