-->
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: Column alias not supported with db2/vm (sql/ds) database
PostPosted: Fri Oct 08, 2004 1:00 pm 
Newbie

Joined: Wed Oct 22, 2003 11:52 am
Posts: 3
Location: Qu
Hibernate version:2.1.6

Name and version of the database you are using:DB2/VM

The generated SQL (show_sql=true):select membre0_.no_membre as no_membre from f_membre membre0_ where (membre0_.no_membre=? )

Debug level Hibernate log excerpt:An unexpected token "AS" was found following "NO_MEMBRE". Expected tokens may include: "". SQLSTATE=42601

We use a DB2/VM database. This old DB does not support coloumn alias.

i.e. I can't do : Select toto as t form table.


Is it possible to use hibernate with this limitation. Any workaround ?

thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 10, 2004 1:36 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
No, not possible. Hibernate depends on using column name aliases.


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.