Generate Changelog with Liquibase and JPA Entities

后端 未结 1 1536
星月不相逢
星月不相逢 2021-01-22 15:25

I would like to introduce liquibase to my project and first of all I would like to generate a changelog file according my hibernate entities.

What I have so far:

相关标签:
1条回答
  • 2021-01-22 16:06

    If you want to generate changelog starting with your hibernate entities you can use

    mvn liquibase:diff
    

    first you need to add dialect to your referenceUrl (missing in your configuration)

    <referenceUrl>hibernate:spring:ch.hemisoft.immo.domain?hibernate.physical_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy&amp;dialect=org.hibernate.dialect.H2Dialect</referenceUrl>
    
    0 讨论(0)
提交回复
热议问题