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

@@ -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) &&