-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Querying an indexed table through Query by example
PostPosted: Thu Mar 01, 2007 7:10 am 
Newbie

Joined: Thu Mar 01, 2007 6:47 am
Posts: 5
Hi,
I am facing a problem with using the indexes created on my database through a hibernate Query by Example.
Here are the details-
TABLE- PERSON
=============
Name Address City Country

The index is on Name column. Now when i use the Example object and query this table the hibernate generated query always reads- where CITY=... and NAME = ...
Because of this ordering of the where clause, the index is not used.

Is there any way by which i can control the order in which the column names appear in the where clause?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.