Hi All,
I have used roo 1.1.2.RELEASE [rev fbc33bb] to generate my entities. But I can't seem to create the tables.
I didn't see any docs that instructed you on how to use the *.script generated file to create your DB. SO I just uploaded my war to my AWS instance and hoped some roo magic would take place.
It didn't.
So I loaded phpMyAdmin on my instance and proceeded to create tables. Not much luck there either. When I cut and past into the phpMyAdmin SQL tab I get the following errors:
I got that error from this create statement:Code:Error SQL query: CREATE TABLE FANCY_NAME( ID BIGINTGENERATED BY DEFAULT AS IDENTITY( START WITH 1 ) NOT NULL PRIMARY KEY , FANCY_NAME VARCHAR( 20 ) , FOR_BOY BOOLEAN, FOR_GIRL BOOLEAN, VERSION INTEGER ); MySQL said: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,FANCY_NAME V' at line 1
It seems like phpMyAdmim is choking on 'VARCHAR'. I checked and VARCHAR is a valid.Code:CREATE TABLE FANCY_NAME(ID BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,FANCY_NAME VARCHAR(20),FOR_BOY BOOLEAN,FOR_GIRL BOOLEAN,VERSION INTEGER);
Anybody see what I'm doing incorrectly? I've been trying to create this DB fo at least 4 days now (its my own after hours project).
Any advice would be greatly appreciated.


Reply With Quote
