-->
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.  [ 2 posts ] 
Author Message
 Post subject: case sensitive search in Hibernate 3 ?
PostPosted: Wed Mar 15, 2006 10:21 am 
Regular
Regular

Joined: Tue Jul 13, 2004 2:27 am
Posts: 73
Location: Singapore
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.1.2


Name and version of the database you are using: MySQL 5.0

I do case sensitive search Hibernate 2 with no problem:
"from User u where binary u.name=?"

However, in Hibernate 3 I have to remove 'binary' otherwise I get error:
unexpected token .......

I am using getHibernateTemplate().find (string, params) to perform the search.

I guess it is because find() accept HQL not SQL anymore.

If it is true, how do I perform a case sensitive search ?

thanks !
lx


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 18, 2006 1:36 am 
Regular
Regular

Joined: Tue Jul 13, 2004 2:27 am
Posts: 73
Location: Singapore
i have to switch back to H2 query parser by setting this hibernate.properties:

hibernate.query.factory_class org.hibernate.hql.classic.ClassicQueryTranslatorFactory


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

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.