Skip to content

Question about not() behaviour with null values #114

@Totremont

Description

@Totremont

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions