After upgrading to Spring Boot 1.4.2 and Hibernate 5, I can't get schema generation through Liquibase Hibernate to work correctly anymore. I switched to liquibase-hibernate5
3.6 and sorted out the naming strategy, but I'm still stuck on two issues:
AttributeConverter
marked withautoapply
is not applied. I could work around that by explicitly applying it, but I'm still mentioning it as it might provide a hint for the next issue.- A
byte[]
is generated as aBLOB
while Hibernate expects it to be aVARBINARY
at runtime.
This is how I invoke Liquibase:
liquibase --changeLogFile=src/main/liquibase/base/entity.yml --url=hibernate:spring:nu.yona.server?dialect=org.hibernate.dialect.HSQLDialect&hibernate.physical_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy generateChangeLog
Any suggestions?