Nous n'utilisons pas l'API hibernate propriety. Nous suivons l'API standard JPA pure. Comment définir une valeur booléenne en tant que paramètre de requête JPQL? (Javax.persistenc.Query) ce qui suit ne fonctionne pasSet boolean to javax.persistenc.Query
@NamedQuery(name = "Employee.getEmployeeByState", query = "select employee.id From Employee employee where employee.state=:inputState")
Query getEmployeesExcluded = entityManager.createNamedQuery("Employee.getEmployeeByState");
getEmployeesExcluded .setParameter("inputState", Boolean.FALSE);
quand je noyau dur la requête de son @NamedQuery de travail (name = "Employee.getEmployeeByState", requête = "select employee.id De Employé employé où employee.state = 1") – user2555212
Définir "ne fonctionne pas". Précisément. –
Son retournant toutes les entrées indépendamment de employee.state TRUE/FALSE – user2555212