Generate Changelog with Liquibase and JPA Entities

后端 未结 1 1551
星月不相逢
星月不相逢 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)

    hibernate:spring:ch.hemisoft.immo.domain?hibernate.physical_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy&dialect=org.hibernate.dialect.H2Dialect
    

    0 讨论(0)
提交回复
热议问题