-->
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.  [ 4 posts ] 
Author Message
 Post subject: Case sensitivity in HQL
PostPosted: Thu May 12, 2005 9:44 pm 
Newbie

Joined: Wed May 04, 2005 5:38 pm
Posts: 15
Hibernate version: 3.0.3

Hello,

Please help :) How can I use case sensitivity in HQL. The "binary" keyword drops exception, moreover "=" and "like" aren't case-sensitive.

:(

Thx: Beci


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 13, 2005 4:53 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
as per the doc, HQL keywords are not case sensitive

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 13, 2005 7:39 am 
Newbie

Joined: Wed May 04, 2005 5:38 pm
Posts: 15
I think not keywords but comparsion see the example below:

FROM Foo as a WHERE a.property='Any WoRdS'

(I can use "binary" keywords in Hibernate 2 - in HQL - that was right for me, when I use that the case sensitivity was good)

and the comparsion only will be true if the property's String exatly equals to 'Any WoRdS'.
Is it possible?

Thx: Beci


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 14, 2005 4:56 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
I think that would be dependent on how you have the database setup, as to whether or not comparisons of strings are case sensitive.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.