I need to model a table called group which, being an SQL keyword is giving me some problems.
My Group.hbm.xml file is defined as:
When I try and query the database, the following sql is produced
which falls over with the exception message
If I run the sql against the database, it works fine!!
I've tried replacing the [] with backticks (``), the same eception is thrown.
There is also the problem that the query returns everything despite being given a QBE object with the composite keys filled in, but one thing at a time, eh?
Shailesh Kini
Ranch Hand
Joined: Oct 17, 2001
Posts: 153
posted
0
Hi Alana,
Can you please check if the database userid used by hibernate has access to this table?
Shailesh Kini.
Alana Sparx
Ranch Hand
Joined: Feb 14, 2006
Posts: 121
posted
0
Hi Shailesh
Oh, it's much more serious than that. It would help if the test database I was using had a [group] table in the first place!
Sometimes my own stupidity amazes even me!
Many thanks
subject: Hibernate and a Table called [group] - problem