-->
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: Changing Criteria Query Select Statements
PostPosted: Tue Jan 25, 2005 11:25 am 
Beginner
Beginner

Joined: Fri Oct 22, 2004 4:47 pm
Posts: 22
I am having a problem with the JDBC driver I am using regarding column aliases.

The driver will execute the query ok, but when Hibernate tried to grab the value of the column by the alias, the driver throws an error.


This is a problem with the DB driver and not with Hibernate. Here is my actual question though:

I have noticed when doing an HQL query the aliases that are in the query are the same as the column names. If I execute a query using HQL and this driver, the hibernate load works.

If I try to do a criteria query, the aliases are different then the column names and the driver fails.

Is there anyway through a custom dialect to change how the aliases are done in a Criteria query?


Thanks,

Paul

Hibernate version:

2.1.7


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 25, 2005 4:08 pm 
Beginner
Beginner

Joined: Fri Oct 22, 2004 4:47 pm
Posts: 22
Is this not possible? I don't really want to change the hibernate source, but would not mind writting a custom dialect if this is something that can be controlled through it.

Thanks,

Paul


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.