Fix JpaClientModelCriteriaBuilder when querying by ALWAYS_DISPLAY_IN_CONSOLE with H6

This commit is contained in:
vramik 2023-01-20 14:13:22 +01:00 committed by Václav Muzikář
parent 4189edc9f1
commit b55be98115

View file

@ -71,8 +71,8 @@ public class JpaClientModelCriteriaBuilder extends JpaModelCriteriaBuilder<JpaCl
return new JpaClientModelCriteriaBuilder((cb, query, root) ->
cb.equal(
cb.function("->>", JsonbType.class, root.get("metadata"), cb.literal("fAlwaysDisplayInConsole")).as(Boolean.class),
value[0])
cb.function("->>", String.class, root.get("metadata"), cb.literal("fAlwaysDisplayInConsole")),
convertToJson(value[0]))
);
} else if (modelField == SearchableFields.ATTRIBUTE) {
validateValue(value, modelField, op, String.class, String.class);