[jboss-user] [JBoss Seam] - EntityQuery forces use of Boolean instead of booleaan, still

codelion do-not-reply at jboss.com
Tue Mar 13 12:26:08 EDT 2007

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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027598#4027598

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027598

More information about the jboss-user mailing list