aspose file tools*
The moose likes Object Relational Mapping and the fly likes Hibernate: changing case of table name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate: changing case of table name" Watch "Hibernate: changing case of table name" New topic
Author

Hibernate: changing case of table name

David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

We have a MySQL schema with a mapping to a user table in another schema, where the local user has SELECT permission on that table



As you can see the declared table name is capitalised, as is the table name itself, as well as the grant statement:


However when we view the queries, hibernate is referring to the table as "user_" ie in lowercase.
I got around this by creating a view with that name, but does anyone know why Hibernate is doing this, and a possible solution?

MySQL 5.1, Hibernate 3 and Spring
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate: changing case of table name