-->
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: ASTQueryTranslator not calling transformSelectString method
PostPosted: Fri Mar 16, 2007 10:38 am 
Newbie

Joined: Fri Mar 16, 2007 10:20 am
Posts: 1
Hib version: 3.2.0.ga.

I am using a custom dialect in which I have overriden the transformSelectString method. This method allows for SQL modifications prior to it being sent to the db. ClassicQueryTranslator does call this method after SQL construction but ASTQueryTranslator doesn't seem to. This assumption is based on failing Hibernate tests (i.e. testSubComponentReferences method in HQLTest.java) that compare behavior between the two translators. The SQL returned from Classic translator has my SQL modification while the SQL returned from AST does not.

My main goal is to modify the generated SQL before it reaches the db. I figured overriding transformSelectString method is the easiest approach. Why doesn't AST call that method in my dialect? What is the correct approach to modifying the generated SQL if this isn't it? An interceptor?


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.