File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate: changing case of table name" Watch "Hibernate: changing case of table name" New topic

Hibernate: changing case of table name

David O'Meara

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:
subject: Hibernate: changing case of table name
jQuery in Action, 3rd edition