Enhance generated DDL of EclipseLink

痞子三分冷 提交于 2019-12-24 13:33:48

问题


Is it possible to change the generated DDL statements of EclipseLink during the creation process? In the persistence.xml I use the table-creation-suffix, but it adds only some things to the CREATE TABLE statements. There are also a lot of ALTER TABLE statements, which I can not change. Something like a table-alteration-suffix would be nice.

<property name="eclipselink.ddl-generation.table-creation-suffix" value=";" />
<property name="eclipselink.ddl-generation" value="drop-and-create-tables" />
<property name="eclipselink.ddl-generation.output-mode" value="sql-script" />
<property name="eclipselink.application-location" value="/path" />
<property name="eclipselink.create-ddl-jdbc-file-name" value="create.sql" />
<property name="eclipselink.drop-ddl-jdbc-file-name" value="drop.sql" />

来源:https://stackoverflow.com/questions/14704452/enhance-generated-ddl-of-eclipselink

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!