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: Case sensitive table and column names
PostPosted: Sun Apr 01, 2007 8:13 pm 
Newbie

Joined: Thu Mar 29, 2007 3:58 am
Posts: 5
Is there any way to get hibernate to generate case sensitive SQL for Oracle? My existing tables and column names are case sensitive, and are named exactly the same as the object that accesses them. I was hoping there was some switch, or simple code change that would enable hibernate to automatically generate the right case for the name.

Would subclassing the oracle dialect in some way help?


Hibernate version: 3.2.2 GA
Annotations version: 3.2.1
Java version: 1.6.0
Jboss version: 4.0.5 GA
Name and version of the database you are using: Oracle 9i (9.2.0.7.0)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 03, 2007 4:06 am 
Regular
Regular

Joined: Fri May 12, 2006 4:05 am
Posts: 106
As far as I recall you just have to enclose the table- and column-names in your mappings in backticks, e.g.

column="`CaseSensitiveName`"


Top
 Profile  
 
 Post subject: RE: Backticks
PostPosted: Tue Apr 03, 2007 6:29 pm 
Newbie

Joined: Thu Mar 29, 2007 3:58 am
Posts: 5
Yeah, i remember reading something about that. But I was hoping to get away without having any mapping (by using annotations and accepting the default mapping).

It's not a big deal I guess, but it would be convenient since the names are identical to the DB names.


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.