-->
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: ORA-00911: invalid character, for Hibernate generated alias
PostPosted: Thu Feb 12, 2004 8:05 pm 
Newbie

Joined: Thu Feb 12, 2004 7:25 pm
Posts: 2
Hibernate generates the folloging query:
select _u.user_group_id as x0_0_ from LTDS.USERGROUP _u where (_u.name='argosys' )

(Oracle version 9i, Hibernate 2.1.2)


Oracle reports ORA-00911 error code, Invalid Character.


If I remove the underscore on table alias and paste the following query into SQL*Plus it works: (Fails as well with '_' in SQL*Plus)

select u.user_group_id as x0_0_ from LTDS.USERGROUP u where (u.name='argosys' )

I am suprised, since Hibernate does not use '_' as first char for other aliases that it generates. One hint, USERGROUP table is a "superclass" to two other tables <joined-subclass>.

Thanks.


Top
 Profile  
 
 Post subject: OOPS, Hibernate never generated this query
PostPosted: Thu Feb 12, 2004 8:10 pm 
Newbie

Joined: Thu Feb 12, 2004 7:25 pm
Posts: 2
Sorry, Hibernate never generated this query, instead I had this query defined in a <query> inside the hbm.xml file.

Please disregard this post.


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.