DDL Generation

21 views
Skip to first unread message

richar...@taskize.co.uk

unread,
Nov 13, 2015, 9:48:53 AM11/13/15
to Sculptor Generator
Hi -

Just wondering how much if any control we can have over the generation of the DDL.

Is this being generated by Sculptor or JPA provider (Hibernate in our case)?

If we can take more control via overriding, do you think it would be possible to generate DDL per Application_part or Module.

The reason for this is that we split out DDL across multiple schemas. Not all tables exist in each schema.

In addition it would be nice to generate the DDL such that it checks if the objects exists before dropping the table or index. Is that possible.

I took a look in GIT and nothing really struck me in the code about how this DDL is generated. We are on postgres if that helps. 

Thanks,
Richie. 

Torsten Juergeleit

unread,
Nov 13, 2015, 4:29:02 PM11/13/15
to Sculptor Generator
At the end of the day you have full control because during code generation the applications complete meta model is at your hand. This is used in the existing DDL templates.

Is this being generated by Sculptor or JPA provider (Hibernate in our case)?


I took a look in GIT and nothing really struck me in the code about how this DDL is generated. 

Strange, isn't this working for you?

/Torsten
Reply all
Reply to author
Forward
0 new messages