Hibernate - Edit code generated by hbm2ddl.auto property

时间:2016-04-04 17:50:27

标签: hibernate hbm2ddl dashdb

Is there any way to edit the code generated by the tool hbm2ddl.auto from Hibernate? I ask this because I would like to insert the words ORGANIZE BY ROW in the CREATE TABLE statements generated by hibernate tool.

1 个答案:

答案 0 :(得分:0)

间接方法 - 你可以写一些代码让Hibernate在文件中写出DDL(http://jandrewthompson.blogspot.in/2009/10/how-to-generate-ddl-scripts-from.html)。然后,您手动编辑该文件并添加' organize_by_row' create table DDL的子句。现在在面向列的dashDB / DB2

上运行此文件