I have an entity with a Boolean attribute memoryStored that can accept: true, false or null.
I wanted to fetch every row that does not have memoryStored equal true so I added this line :
query.addConstraint(ConstraintBuilder.of("memoryStored").equal(true).not());
I expect this to target both false and null values.
However, I am only getting the rows with false. Null values are not being retrieved.
Is there something I am not doing right or is this a bug ?
I have an entity with a Boolean attribute
memoryStoredthat can accept:true,falseornull.I wanted to fetch every row that does not have memoryStored equal true so I added this line :
query.addConstraint(ConstraintBuilder.of("memoryStored").equal(true).not());I expect this to target both false and null values.
However, I am only getting the rows with
false. Null values are not being retrieved.Is there something I am not doing right or is this a bug ?