-->
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: SQL Casing
PostPosted: Sun May 21, 2006 5:28 pm 
Newbie

Joined: Wed May 17, 2006 10:17 am
Posts: 3
Hi All,

I’m trying to access an IBM UniVerse database using hibernate. But universe is case sensitive and the sql that hibernate generates is in lower case, but what is required is that the casing must be preserved for table names and column names.

Example:

UniVerse will not accept (which what hibernate generates):

select tbl_clients0.id, tbl_clients0.name
from tbl_clients tbl_clients0;

But will accept:

SELECT TBL_CLIENTS0.ID, TB_CLIENTS0.Name
FROM TBL_CLIENTS TBL_CLIENTS0

Note that the column [name] only the first letter is capitalised.

Is there any way I could control this in hibernate.

_________________
---------
Regards
Gigabyte


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 22, 2006 12:37 am 
Regular
Regular

Joined: Fri Oct 01, 2004 2:19 am
Posts: 111
Location: Melbourne, Australia
Have you tried defining your own NamingStrategy?
A NamingStrategy allows you to define your own naming rules for columns
and tables in relation to properties and classes.

_________________
Cheers,

Bonny

please don't forget to rate :)


Top
 Profile  
 
 Post subject: Thanks
PostPosted: Mon May 22, 2006 4:09 am 
Newbie

Joined: Wed May 17, 2006 10:17 am
Posts: 3
This looks promising. Thanks I’ll try it.

_________________
---------
Regards
Gigabyte


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.