-->
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.  [ 3 posts ] 
Author Message
 Post subject: Upper case in column names
PostPosted: Fri Mar 02, 2007 7:54 am 
Newbie

Joined: Fri Mar 02, 2007 7:49 am
Posts: 1
The problem is result set from EasySoft JDBC-ODBC Bridge tries to select column NOT ignoring character case. So Hibernates tries to get data from 'column1', but result set has 'COLUMN1' and exception appears.

Can Hibernate generate column names in upper case?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 05, 2007 6:13 am 
Regular
Regular

Joined: Fri May 12, 2006 4:05 am
Posts: 106
You could try quoting the column-name with backticks ` in your mapping-file:
....column="`COLUMN1`"...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 05, 2007 6:38 am 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
Please show us your mappings. Why don't you just use table="YOUR_TABLE" and COLUMN="YOUR_COLUMNS"?

You can also implement your own NamingStrategy to achieve this: http://www.hibernate.org/hib_docs/v3/re ... ngstrategy

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.