i use the following query in JPQL to query the people whose address column is empty.
List rl = em.createQuery( "select o from Person as o where o.address IS NULL" ).setFirstResult( 0).setMaxResults( 50).getResultList(); ...
this line of code always return an empty list, obviously the table does has entries that match the condition.
class Person { Address address; String name; ... } class Address { String name; ... }
anyone knows what's wrong with this jpql statement? thanks in advance.