2 Replies Latest reply on Mar 13, 2007 12:41 PM by Leo Baschy

    EntityQuery forces use of Boolean instead of booleaan, still

    Leo Baschy Novice

      Am I seeing that correctly:

      If a property is primitive type boolean, then EntityQuery cannot tell that I don't want to search for it in a specific query (from a form at a list view), it would always search either for false or true, but never both.

      The workaround is to define the property of class Boolean. May annotate it @NotNull for persistence.

      Then the query works the first time coming to the page, having null in the Boolean.

      But the next time, i.e. searching from the page with form submit, it gets a FALSE from the h:selectBooleanCheckbox.

      Haven't found an elegant solution yet.