Finish FixInsertCharacter
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2024-11-05 11:52:17 +01:00

View File

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