Joined: Fri Jul 30, 2010 7:50 am Posts: 1
|
I have a libary with JPA annotated classes (binary) that I know is used in conjunction with MySQL 5. In my case however I want to use it with MySQL 5.1.
Now I get a SQL Error and when reproducing the SQL query it turns out that the table name "range" causes problems because (indeed!) "range" is a reserved word in MySQL 5.1. It was NOT a reserved word in MySQL 5.0.
So far so bad.
Now, if I could get Hibernate to quote identifiers by default (which does really not seem to be far off the default behavior I would expect from any SQL generating tool ... [couldn't resist]) everything could be good again.
Alas I was not able to find anything around Hibernate that would help me reach that goal.
Any idea/help would be great.
Thanks!
|
|