Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Teneo Query By Example
Teneo Query By Example [message #609501] Tue, 21 August 2007 20:09
Eclipse UserFriend
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.
Previous Topic:[Teneo] Illegal Argument Exception saving null object enumeration
Next Topic:Incompatible type requested for parameter field (emf+teneo+jpox)
Goto Forum:
  


Current Time: Sun Jul 06 01:39:38 EDT 2025

Powered by FUDForum. Page generated in 0.23921 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top