Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Teneo Query By Example
Teneo Query By Example [message #609501] Wed, 22 August 2007 00:09
Jason Henriksen is currently offline Jason HenriksenFriend
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.
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: Fri Apr 19 21:30:26 GMT 2024

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

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

Back to the top