Hello,
I am using hbm2ddl tool for generating "create schema" script for production system which will work with huge amount of data. I am solving a performance problem now. I can improve the performance by using of some Oracle specific DDL statements in create script but I have not found an easy way how to generate Oracle specific DDL with hbm2ddl (or another tool).
For example I need to generate indices on foreign keys or I want to determine in which tablespace should be given table added.
I realize that the metadata desciption tools (annotations or XML mapping files) have to be generic but I speculate if there can be some possibility to append some piece of vendor-specific DDL to generated DDL.
This problem can be also solved using another approach - using another anotation-processing tool which will have its own set of annotations allowing generation of Oracle specific DDL.
I have not found suitable tool or some "best practice" how to do that so I am asking this question before I start to implement some utility which will allow doing this by hand.
I know that my question is quite generic, but I will be grateful for every hint or experience in solving above mentioned problems.
Thank you.
|