-->
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.  [ 3 posts ] 
Author Message
 Post subject: Can I reopen HHH-2952?
PostPosted: Fri Jan 30, 2009 12:58 pm 
Newbie

Joined: Fri Jan 30, 2009 12:20 pm
Posts: 3
Hi All,

I am experiencing the same issue using a Criteria SQL restriction with a non root alias that has been previously raised in HHH-2952. The issue is resolved as rejected.

The suggested change would work perfectly for me. What is the etiquette? can I go ahead and sign up for an account and reopen the Jira?

I have looked at creating the patch, I can see that org.hibernate.criterion.SQLCriterion.toSqlString() substitutes the {alias} placeholder but because the class CriteriaQuery does not expose a method to get a non root aliases it doesn't look like a trivial patch to implement.

My current workaround is to print the SQL for my query, and use the generated alias in my SQL restriction (hoping it doesn't change).


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 03, 2009 7:25 am 
Newbie

Joined: Mon Jul 21, 2008 5:12 am
Posts: 13
I'm in the same situation - and i made a patch to support that requirements. It works well for me - may be it would be helpfull for you too...

I have add these files to the ticket...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 03, 2009 7:40 am 
Newbie

Joined: Fri Jan 30, 2009 12:20 pm
Posts: 3
Gorbush - many thanks, I will give it a try.

It would be awesome if we could get this improvement into the next release.


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