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.
答案 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
上运行此文件