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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Similar Threads
Adding new Entity Bean in the existing application
ORA-00942: table or view does not exist
pagination via ScrollableResults or via setFirstResult
Hibernate: adding underscore to attibute names
SQLGrammarException: could not retrieve snapshot: