class FieldTruncationUtils {

    public static <T> T truncateStringsToColumnLengths(@NonNull T entity) {
        ReflectionUtils.doWithFields(entity.getClass(), new StringTruncationFieldCallback(entity), new StringFieldFilter());
        return entity;
    }

}