Community
Participate
Working Groups
I am trying to write a JPQL query which returns a `boolean`, but even if I specify the result class as `Boolean.class` my query is still returning an object of type `BigDecimal`. TypedQuery<Boolean> q = em.createQuery( "SELECT CASE WHEN ( count(e) > 0 ) THEN TRUE ELSE FALSE END" + "FROM MyEntity e " , Boolean.class); // Fails, because BigDecimal cannot be converted to Boolean return q.getSingleResult(); EclipseLink, version: Eclipse Persistence Services - 2.6.0.v20150309-bf26070 Oracle 11g Similar issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=430541
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink