-->
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.  [ 4 posts ] 
Author Message
 Post subject: Mixed case names
PostPosted: Fri Sep 26, 2003 7:41 pm 
Regular
Regular

Joined: Tue Sep 02, 2003 5:09 pm
Posts: 81
Location: Whitefish Montana
I am using hibernate against a database with columns defined in mixed case. There are two names available for columns. One is a mixed case name and the other is a short upper-case name. The columns are created like: "insertDate" FOR COLUMN insdat DATE. The map and class generator needed some tweaking to work with the mixed names but it wasn't that far off. Mostly I had to prevent the lower-caseing of column names and added a single quote (') around the column and table name attributes.

Are there any landmines associated with using mixed case names?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 26, 2003 8:43 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Your database is case sensitive toward column names? Wow...

Which one is that? (so I can stay away from it ;)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 26, 2003 10:18 pm 
Regular
Regular

Joined: Tue Sep 02, 2003 5:09 pm
Posts: 81
Location: Whitefish Montana
Well that answers that... I thought most databases were case sensitive when dealing with quoted names. The database in this case is DB2, but I have seen the same thing with Oracle. MySQL seems to be case agnostic. It depends on how the table is created.

In this case, I do have the option of using the short name, which is all uppercase but it is not the value returned by the meta classes so the generation is won't work without some massaging.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 27, 2003 6:35 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Off topic a bit but I was using the Unify Database for a client for many years and it is case sensative. It was a pain at times.


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