Welcome!
This looks a bug. I will try it and fix it asap.
/Patrik
James Warren wrote:
>
> Hello,
>
> I am new to the forum and the site so hopefully this is an appropriate
> place to post.
>
> I am getting syntax errors in the generated DDL when we have Entities that
> extend other entities. Here is what the results look like: B extends A,
> C extends A
>
> DSL:
> abstract Entity A{
> String entityID key;
>
> }
> Entity B extends A {
> String type;
> Repository BRepository
> {
> findById;
> findByExample;
> findByQuery;
> findByKeys;
> save;
> merge;
> delete;
> }
> }
> Entity C extends A {
> }
>
> DDL:
> CREATE TABLE A (
> ID NUMBER(20) NOT NULL,
> ENTITYID VARCHAR2(100) NOT NULL,
> CREATEDDATE DATE,
> CREATEDBY VARCHAR2(50),
> LASTUPDATED DATE,
> LASTUPDATEDBY VARCHAR2(50),
> VERSION NUMBER(20) NOT NULL
> );
> CREATE TABLE B (
> PARENT NUMBER(20) NOT NULL ,
> TYPE VARCHAR(40) NOT NULL ,
> A NUMBER(20), // <- this and every entity extending A has an
> additional comma
>
> );
>
> // In cases where an Entity has no attributes we get an additional comma
> prior
> CREATE TABLE C (
> ,
> A NUMBER(20),
>
> );
>
>
> Also, we are using oracle and it appears that the maxNameLength should be
> defaulted to 22 instead of 27 because the add constraint name is actually
> adding 8 characters instead of 3.
>
> # It is actually 30, but constraint name prefix takes 3
> db.oracle.maxNameLength=27
>
> ALTER TABLE TABLENAME
> ADD CONSTRAINT UQ_TABLENAME_UUID UNIQUE (UUID)
> ;
>
> Thanks,
> James
>
--
View this message in context:
http://www.nabble.com/Generated-DDL-Script-verion-1.5-Errors-tp19658405s17564p19663198.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer