-->
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: Escaping Quotes In A Criteria Query
PostPosted: Tue Jul 05, 2005 11:07 am 
Beginner
Beginner

Joined: Fri Oct 22, 2004 4:47 pm
Posts: 22
Hibernate version:
2.1.7


Dialect:
GenericDialect

Hi All,

I have come across a situation where I need some assitance. I have a Criteria query that is failing when apostrophe's are present. I am using a priopriatary flat file db. The JDBC driver that I am using wants a \ to escape apostrophe's in a string. I assume the the GenericDialect is either using another apostrophe for the escape, or not doing anything at all. I have read the API for Dialect, and am unable to understand where the apostrophe's are being checked at.

Can someone point me to the method that needs to be changed so I can extend GenericDialect with my own implemenation? I hope I am heading down the right path. We have a generic class that is using the Criteria query, and I would like to avoid having to change the way the query is being done if possible.

TIA for the help,

Paul Zepernick


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.