This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate: changing case of table name

 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic