-->
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: Problem with PostgreSQL using uppercase letters in tables
PostPosted: Thu Oct 18, 2007 11:41 am 
Newbie

Joined: Wed Nov 02, 2005 11:00 am
Posts: 12
Location: Austria, Vienna
Hi,

I have problems using Hibernate tools when using upper case letters in a PostgreSQL database.

My configuration: Eclipse 3.3.0, Hibernate Tools 3.2.0 beta9a, PostgreSql 8.2 and JDBC driver postgresql-8.2-506.jdbc3.jar.

I can configure Hibernate Tools for my local PostgreSql installation without any problems. I can access the table structure in the view Hibernate Configurations and do reverse engineering by creating XML mappings and beans. No problem.

But when I'm using upper case characters in table names Hibernate Tools can't access the table structures any more. Hibernate Configuration shows the tables, but when I want to see the columns, it doesn't show anything. Reverse engineering also doesn't work any more.

So, the following works:

TABLE cms_clusterMessage

pk_clustermessageid
fk_clusternodeid
messagetype
messagedetail

The following doesn't work:

TABLE cms_clusterMessage

PK_ClusterMessageId
FK_ClusterNodeId
MessageType
MessageDetail

I tried to use different JDBC drivers because I thought it could be a bug of the driver. But it wasn't.

Please note that I'm using PostgreSQL on Windows at the moment. Don't know if it behaves different if installed on Unix/Linux!?

Thanks!

RĂ¼diger Engelberger


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 18, 2007 4:14 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
looks like postgressql is inconsistent in its handling of jdbc metadata - report it as an bug if it is still an issue in latest release (b11)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Same behaviour when using 3.2.0 Beta11
PostPosted: Fri Oct 19, 2007 2:59 am 
Newbie

Joined: Wed Nov 02, 2005 11:00 am
Posts: 12
Location: Austria, Vienna
Hi,

I installed the newest Release 3.2.0 Beta11 ... nothing changed.

So I'll report it as a bug.

Thanks!

RĂ¼diger Engelberger


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.