user table with javaDB and hybernate from within grails

Posted by Ralf on Stack Overflow See other posts from Stack Overflow or by Ralf
Published on 2010-04-16T07:57:54Z Indexed on 2010/04/16 8:13 UTC
Read the original article Hit count: 346

Filed under:
|
|
|

let's see if I can ask this in an understandable way...

I started with grails and created a domain class called user. As far as I understand, hybernate is used to map this domain class to the database. This works pretty fine with hsqldb.

Now I tried to switch to javaDB and get an error message because the table is called "user" (which seems to be a reserverd word for javaDB).

So a statement like

create table user ...

will result in an error message.

create table "user" ...

works, but hybernate seems not put put the table name in quotes.

How can I configure hybernate to use quotes in order to make it work with my table name?

PS: yes, I know, I could map the domain class to another table name... :-)

© Stack Overflow or respective owner

Related posts about javadb

Related posts about derby