Questions tagged [liquibase-hibernate]

Liquibase plugin for Hibernate that lets this be configured as a comparison database for Liquibase commands.

Liquibase plugin for Hibernate that lets this be configured as a comparison database for diff, diffChangeLog and generateChangeLog commands of Liquibase.

163 questions
14
votes
2 answers

using spring boot profiles with liquibase changeset context attribute to manage changset scope

I am trying to do a proof of concept application with spring boot and liquibase. I basically want to create a spring boot app that can manage liquibase changesets by utilizing the changeset attribute called context, so that changesets with no…
franklini
  • 141
  • 1
  • 1
  • 7
11
votes
1 answer

Is there a way to convert SQL queries to liquibase changelog format?

I would like to know if it is possible to convert an existing SQL script into XML format of changelogs of a liquibase?
Belham
  • 155
  • 1
  • 1
  • 12
10
votes
1 answer

Liquibase generating empty ALTER SEQUENCE changes

I have a set of JPA entities that have their IDs generated by a sequence: @GenericGenerator( name = "catalog_items_history_seq", strategy = "org.hibernate.id.enhanced.SequenceStyleGenerator", parameters = [ (Parameter(name =…
Raibaz
  • 9,280
  • 10
  • 44
  • 65
10
votes
2 answers

How to divide Liquibase package structure for dev and prod environment in Spring Boot?

My package structure is looks like: In /db.changelog/db.changelod-master.xml i include /db.changelog/v1/db.changelog-1.0.xml where i also include all changelogs from /db.changelog/v1/changeset package. In my application, I have two profiles: dev…
Abzelhan
  • 510
  • 1
  • 7
  • 26
10
votes
1 answer

Liquibase generate changelog from JPA entities

I have a Spring boot, spring data jpa project with a parent and three children modules. One of my modules is responsible for my JPA entities. I need generate one xml changelog with liquibase from this entities. In my liquibase.properties i have the…
10
votes
4 answers

Liquibase Hibernate Plugin Does Not Work

As described here (https://github.com/liquibase/liquibase-hibernate/issues/74) I'm having an issue getting the liquibase-hibernate extension to work properly. I think I have everything setup, but it seems like I keep running into weird problems. I…
Jazzepi
  • 5,259
  • 11
  • 55
  • 81
7
votes
1 answer

liquibase-hibernate5 not working with liquibase-maven-plugin

I'm using Spring Boot Starter 1.4.2.RELEASE + Hibernate 5 + Hibernate Spatial + Liquibase 3.5.3 + Liquibase Hibernate 5 (liquibase-hibernate5 3.6) + PostgreSQL and I can't make work the liquibase:diff goal. Here is my setup:
7
votes
2 answers

Liquibase + Hibernate rename column

I'm using a H2 database to store my Data, and liquibase (with hibernate plugin) to check for differences between database and projet. suppose I have followign Code: @Entity public class myEntity{ @Column(name="val") private int…
Lamp3
  • 89
  • 1
  • 1
  • 3
6
votes
1 answer

liquibase:diff command throws Null pointer exception

I generated liquibase schema with mvn liquibase:generateChangeLog, and when I try to execute the diff command with mvn liquibase:diff I get an error message Error getting default schema java.lang.NullPointerException. Not sure what's wrong with my…
Pavan Jadda
  • 4,306
  • 9
  • 47
  • 79
6
votes
0 answers

Liquibase-hibernate changelog generation for entities in multiple schemas

I am trying to generate diff between Hibernate entities (from a single base package) and a clean database (Oracle 11gR2 XE) through liquibase-maven-plugin using liquibase-hibernate5 (Spring-5.0.4.RELEASE, Hibernate-5.2.15.Final, JPA-2.1.1…
Abhinav Rai
  • 273
  • 2
  • 15
6
votes
1 answer

Liquibase cannot find my entity classes to generate diff in spring project

Liquibase cannot find my entity classes(JPA annotated) inside given package to generate diff. when I use mvn liquibase:diff command It says No changes found, nothing to do but my entities have new fields I use spring framweork, JPA(hibernate),…
6
votes
0 answers

liquibase-hibernate shows all tables as "unexpected"

I followed these steps to get liquibase-hibernate working. I hope I correctly understood the instructions in the wiki. Our hibernate entities are declared in the file applicationContext.xml. We do not have a hibernate.cfg.xml. My liquibase…
Monkey Supersonic
  • 1,165
  • 1
  • 10
  • 19
5
votes
1 answer

Liquibase + Hibernate ORM 5.0

I'm about to migrate to Hibernate ORM 5.0 and I would like to use Liquibase in my project too. The Liquibase Hibernate Extension mentions liquibase-hibernate4 for Hibernate 4.3+ support. Is there anyone using Liquibase and Hibernate ORM 5.0? I want…
IvanRF
  • 7,115
  • 5
  • 47
  • 71
4
votes
0 answers

Liquibase Hibernate missing SequenceStyleGenerator.generatorKey() error

I am trying to generate a diff changelog using Liquibase and Hibernate but when I run the command gradle diffChangeLog I get the following error: ERROR [liquibase.integration.commandline.Main]: Unexpected error running Liquibase: 'java.lang.Object…
user2047296
  • 315
  • 3
  • 12
4
votes
0 answers

Liquibase with Java 13: org.hibernate.boot.registry.classloading.spi.ClassLoadingException

Basically, I use Liquibase for most of my Java projects (at least where db migrations are needed) and it worked always on Java 8. I have a requirement now to migrate an existing project to Java 13. The project compiles with the Java 8 and also with…
Errno
  • 111
  • 5
1
2 3
10 11