I have a property created like this in my model:
public class Client {
private Boolean supervisor;
}
When doing a query using Criteria, for example: p4 = cb.isTrue (root.get ("supervisor")), JPA returns an error client0_.supervisor = 1 - ERROR: conversion error of string "1" [SQLState: 22018, ISC error code: 335544334]. How can I solve this?
My RDBMS is Firebird and the supervisor column is of type BOOLEAN.