This content has been marked as final.
Show 4 replies
-
1. Re: Did
kabirkhan Apr 22, 2005 4:24 AM (in response to vincent_os)Can you post the stack trace please?
-
2. Re: Did
epbernard Apr 22, 2005 6:34 AM (in response to vincent_os)Override the table name with backticks '
GROUP is a SQL reserved word. -
3. Re: Did
vincent_os Apr 22, 2005 12:06 PM (in response to vincent_os)OK, tried the following:
@Entity @Table(name="MyGroup") public class Group implements Serializable, Cloneable {
I still get the follwing error:6:58:08,912 ERROR [SchemaExport] Unsuccessful: create table Group (id integer generated by default as identity (start with 1), displayName varchar(255), description varchar(255), parentGroup_id integer, primary key (id)) 16:58:08,912 ERROR [SchemaExport] Unexpected token: GROUP in statement [create table Group]
It seems that the annotation (@Table(name="MyGroup")) is not overriding the table name? -
4. Re: Did
epbernard Apr 25, 2005 6:12 PM (in response to vincent_os)You most likely made a mistake. I'm pretty sure it works.