-->
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.  [ 15 posts ] 
Author Message
 Post subject: problem with case sensitive database
PostPosted: Tue May 11, 2004 12:16 pm 
Beginner
Beginner

Joined: Tue May 11, 2004 12:08 pm
Posts: 38
Location: Davis,CA,USA
dear all I using hibernate 2.1 and a sapdb database with tablenames like this:

myTABLE

now some users want to acces this tables with hibernate, this tool rocks!, and I become the exception:

table MYTABLE not found,

sure thats clear, the name is myTABLE

how can I deal with this?

what's not possible:

- rename all tables and column!
- define some views who wrappes this names to uppercase


thanks gert


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 11, 2004 12:55 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Try quoting the table names in the mapping.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 11, 2004 12:59 pm 
Beginner
Beginner

Joined: Tue May 11, 2004 12:08 pm
Posts: 38
Location: Davis,CA,USA
how?

I use xdoclet and try \"name\", but i don't works...


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 11, 2004 1:00 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Try without xdoclet first.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 11, 2004 1:00 pm 
Beginner
Beginner

Joined: Tue May 11, 2004 12:08 pm
Posts: 38
Location: Davis,CA,USA
ok I test this, whitch quote must i use?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 11, 2004 1:02 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Don't know, why don't you just try it.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 11, 2004 1:07 pm 
Beginner
Beginner

Joined: Tue May 11, 2004 12:08 pm
Posts: 38
Location: Davis,CA,USA
sure but id dont know the quote for an " " " in xml...


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 11, 2004 3:39 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Use backticks.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 12, 2004 2:21 am 
Beginner
Beginner

Joined: Tue May 11, 2004 12:08 pm
Posts: 38
Location: Davis,CA,USA
sorry don't work...


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 12, 2004 2:59 am 
Expert
Expert

Joined: Fri Feb 06, 2004 7:49 am
Posts: 255
Location: Moscow, Russia
gert,

read this 5.3. SQL quoted identifiers http://www.hibernate.org/hib_docs/reference/en/html/mapping.html#mapping-quotedidentifiers

Leonid


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 12, 2004 3:16 am 
Beginner
Beginner

Joined: Tue May 11, 2004 12:08 pm
Posts: 38
Location: Davis,CA,USA
whitch quoute do you mean?

SHIFT #

or

SHIFT


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 12, 2004 3:30 am 
Expert
Expert

Joined: Fri Feb 06, 2004 7:49 am
Posts: 255
Location: Moscow, Russia
wohlgemuth wrote:
whitch quoute do you mean?

SHIFT #

or

SHIFT


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 12, 2004 3:35 am 
Beginner
Beginner

Joined: Tue May 11, 2004 12:08 pm
Posts: 38
Location: Davis,CA,USA
why are some solutions so simple, copy and paste...


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 12, 2004 3:48 am 
Beginner
Beginner

Joined: Tue May 11, 2004 12:08 pm
Posts: 38
Location: Davis,CA,USA
and now it works...
yeah baby yeah


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 12, 2004 3:50 am 
Expert
Expert

Joined: Fri Feb 06, 2004 7:49 am
Posts: 255
Location: Moscow, Russia
wohlgemuth wrote:
and now it works...
yeah baby yeah

I think it wokrs because you used magic button "Ё" :)


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