I have the following one-to-one relationship in Hibernate (this may be null):
<one-to-one name="details" class="com.example.Details" lazy="false" cascade="all"/>
I am trying to select all entities that have non-zero data using HQL:
from Entity e where e.details is not null
but this returns all entities, regardless of whether the data is null or not.
What will be the correct HQL?
source share