Problems with generating sql via eclipseLink - missing separator

后端 未结 3 1205
悲&欢浪女
悲&欢浪女 2021-01-11 19:26

i\'am using eclipseLink with jpa. in my persistence.xml, i defined to generate a create.sql file. the file will be generated, but with missing \';\'-separators for each sql

3条回答
  •  梦谈多话
    2021-01-11 19:58

    I encountered this problem and solved it by setting a property in persistence.xml.

    Since Eclipselink 2.6, there is a property "eclipselink.ddlgen-terminate-statements" that when set to true, a delimiter will be appended to each statement.

    I think I was using H2 database at that time.

    For more details, see http://www.eclipse.org/eclipselink/api/2.6/org/eclipse/persistence/config/PersistenceUnitProperties.html

提交回复
热议问题