-->
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: mapping ORACLE columns
PostPosted: Fri Oct 24, 2003 2:31 pm 
Newbie

Joined: Fri Oct 24, 2003 1:50 pm
Posts: 2
Location: Brazil
Hi,
The hibernate is generating the following error:
Caused by: java.sql.SQLException: ORA-00904: invalid column name.
The names of the column of my tables have the character "_"(ex. OBJECT_CODE), when there is not the character don't happen this error. My database is oracle, implementing "sequences generator"
Can anybody help myself?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 24, 2003 4:09 pm 
Newbie

Joined: Wed Sep 24, 2003 7:37 am
Posts: 6
Location: Bologna (ITALY)
Usually this happens when the column name is really wrong.

Enable the SQL output on stdout and execute the result query on SQL*PLUS or TOAD in order to see exactly which column has the wrong name.

Many of columns on my database contains the underscore ("_") character and all work correctly both on Oracle and other databases (e.g. SQL Server, MySQL, ...).

Bye.


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.