[
https://issues.jboss.org/browse/FORGE-910?page=com.atlassian.jira.plugin....
]
Vineet Reynolds edited comment on FORGE-910 at 6/29/13 2:05 PM:
----------------------------------------------------------------
[~hanynowsky],
I've taken a shot at implementing this and have run into a problem that possibly
resulted in Boolean search predicates not supported. The Query By Example pattern
implemented here uses the JPA entity for encapsulating the search criteria. For boolean
fields (note the use of the primitive), this would mean that only search results matching
false (the default for boolean members according to the JLS) would be returned if no
search criteria were supplied, instead of the expected set of all entities.
This QBE feature needs to be re-designed for supporting boolean fields, so that null
and false are distinguishable.
was (Author: vineet.reynolds):
[~hanynowsky],
I've taken a shot at implementing this and have run into a problem that possibly
resulted in Boolean search predicates not supported. The Query By Example pattern
implemented here uses the JPA entity for encapsulating the search criteria. For boolean
fields (not the use of the primitive), this would mean that only search results matching
false (the default for boolean members according to the JLS) would be returned if no
search criteria were supplied, instead of the expected set of all entities.
This QBE feature needs to be re-designed for supporting boolean fields, so that null
and false are distinguishable.
In View Beans, Search predicate for boolean fields is not supported
-------------------------------------------------------------------
Key: FORGE-910
URL:
https://issues.jboss.org/browse/FORGE-910
Project: Forge
Issue Type: Feature Request
Components: Scaffold
Affects Versions: 1.2.3.Final
Environment: Linux 3.8, Firefox.
Reporter: Hanine Hanynowsky
Priority: Minor
Fix For: 1.x Future
In View Beans, Search predicate for boolean fields is not supported.
Jboss Forge generates the View Bean with search support using JPA criteria expressions
for fields of type String and Entity objects but it does not for boolean fields.
Is this not supported? A bug? A feature request? Or simply that it's not possible to
use boolean fields with JPA predicate isLike & equ
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira