标签: jpa boolean jpql named-query
如何告诉JPA(EclipseLink 2.4)检查布尔IN参数是真还是假?
SELECT e FROM MyEntity e WHERE :inParam = TRUE AND e.x = 'bla'
或
SELECT e FROM MyEntity e WHERE :inParam = true AND e.x = 'bla'
如上所述导致 TRUE 不是 inParam 的有效值的例外。