Teneo Query By Example [message #609501] |
Wed, 22 August 2007 00:09 |
Jason Henriksen Messages: 231 Registered: July 2009 |
Senior Member |
|
|
Hi Martin,
My team is trying to build a query by example infrastructure and having a
strange scenario. If a field is nullable and set to null the the field does
not appear as a qualifier in the hibernate query. However if the field in
'unset' then the hibernate generated query will include that column as a
qualifer making bad things happened.
So for example my Book could have a 'code' value of A,B or C. I want to
query by example, so I specify the book's 'title' but I leave the 'code'
value as unset.
The generated query includes 'code' in the criteria parameters and since it
doesn't match nothing is returned.
It seems that the column should not appear in the query at all. Do you have
any experience working with EMF/Hibernate queries in this way?
Thanks for any suggestions,
Jason Henriksen.
|
|
|
Powered by
FUDForum. Page generated in 0.02976 seconds