-->
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: keyword name clash with oracle
PostPosted: Wed Nov 03, 2004 8:54 am 
Newbie

Joined: Wed Nov 03, 2004 8:24 am
Posts: 1
Hello,

I am trying to retrieve a row from a oracle 9 db that is synthetisied
by oracle for a compound key. This row is always called "rowid".
The problem is that 'rowid' is also a key word and because of this,
hibernates fails miserably.

Every thing would be fine if the generated SQL were

select a2uebergan0_.rowid, a2uebergan0_.verk_to as verk_to, a2uebergan0_.sec_von as sec_von, a2uebergan0_.sec_nach as sec_nach from UEBERGNG a2uebergan0_ where (a2uebergan0_.sec_von=? )and(a2uebergan0_.sec_nach=? )

instead of

select a2uebergan0_.rowid as rowid, a2uebergan0_.verk_to as verk_to, a2uebergan0_.sec_von as sec_von, a2uebergan0_.sec_nach as sec_nach from UEBERGNG a2uebergan0_ where (a2uebergan0_.sec_von=? )and(a2uebergan0_.sec_nach=? )

Yes, the only problem is the "as rowid" in the generated SQL query.
Anyone a idea how to work around this?

Cheers,

aanno


Hibernate version: 3.0alpha
Full stack trace of any exception that occurs:
2004-11-03 14:43:14,469 ERROR [net.sf.hibernate.util.JDBCExceptionReporter] - Could not execute query
java.sql.SQLException: ORA-00923: Schl


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.