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
3
votes
1 answer

why liquibase append new changes to the exisiting content of diffChangelog?

I am using Liquibase Hibernate extension to generate diffChangeLogFile against my database and my model.The problem is when I run it with maven and there is some changes in the model, Liquibase append the generated ChangeSets to the old…
elpazio
  • 697
  • 2
  • 9
  • 25
2
votes
0 answers

Using SpringBoot 3 and Hibernate 6 any generated Liquibase changelogs based on my Java Entity classes are empty

I have a SpringBoot 3 based Gradle project that uses Hibernate 6 and Liquibase. The goal is to use the liquibase-hibernate6 dependency to generate an initial Liquibase changelog containing the details of my Java Entity class i.e Item.java. The…
bobbyrne01
  • 6,295
  • 19
  • 80
  • 150
2
votes
0 answers

Liquibase can not find constructor for liquibase.changelog.ChangeSet

I have a gradle multi module spring boot project. My build.gradle file: apply plugin: 'org.springframework.boot' apply plugin: 'org.liquibase.gradle' dependencies { liquibaseRuntime 'org.liquibase:liquibase-core:4.22.0' liquibaseRuntime…
Mert Doe
  • 549
  • 5
  • 15
2
votes
2 answers

liquibase maven plugin UUID vs BINARY(255)

I use the liquibase-maven-plugin to generate the database migration scripts. But liquibase generates the UUID id fields as BINARY(255). This in itself is not a problem as the IDs for new entities are generated by hibernate. So database support for…
aminator
  • 396
  • 7
  • 18
2
votes
0 answers

Unable to get liquibase to read changes on my JPA entities

I'm trying to set up liquibase on a spring boot project. I want to set my JPA entities as a reference so that when I run mvn liquibase:diff any changes are written into a changelog. I'm able to run mvn liquibase:generateChangeLog and the file is…
Sebastian M
  • 471
  • 1
  • 4
  • 20
2
votes
1 answer

LiquiBase - Cannot find database driver liquibase.ext.hibernate.database.connection.HibernateDriver

I am trying to configure liquibase in my project and to generate a difference file between the database and my entities but i have an error. When i run liquibase diff I receive the next error: Starting Liquibase at 09:24:42 (version 4.1.1 #10 built…
Falvius
  • 47
  • 1
  • 1
  • 6
2
votes
0 answers

Liquibase hibernate connection warning in Spring 5 project

I am using liquibase in Spring 5 project with Maven. I have annotation based connection, and liquibase properties file. However when I interact with liquibase via maven goals I get the following warning: HHH000342: Could not obtain connection to…
cvetan
  • 393
  • 1
  • 3
  • 19
2
votes
2 answers

How to read liquibase.properties dynamically from password hashicorp vault

In my Spring Boot project, I am trying to setup liquibase and use it between dev, test and production databases. Everything seems to be working fine, except passing credentials to liquibase.properties file from HashiCorp Vault. I am able to access…
2
votes
0 answers

Spring Data Envers + Liquibase: how to create audited tables and update them automatically?

I would like to audit my models in my Spring Boot app. I use Liquibase for db migration. Say I have this entity : @Entity @Audited public class User { @Id private Long id; private String name; private String firstName; } I create the user table…
2
votes
3 answers

Add column to table with Liquibase

I'm new to back-end development and currently trying to add a column to my app_user table. like below. - changeSet: id: 300520202335 author: Malindu De Alwis changes: - addColumn: tableName: app_user …
2
votes
2 answers

Liquibase ignores autoIncrement="true" for Oracle DB

I generated a schema/tables via the DDL that Hibernate generated which was correct: create table cat_component.organisation ( id number(19,0) generated as identity, archived number(1,0), is_in_avaloq_group number(1,0) not null, …
Georgi
  • 189
  • 2
  • 12
2
votes
1 answer

How to pass dynamic schema names to Liquibase changeset and run them in a loop using liquibase gradle plugin

We are new to liquibase and trying to create schema's dynamically like this CREATE SCHEMA $(schemaName) …
user2359997
  • 561
  • 1
  • 16
  • 40
2
votes
0 answers

Liquibase for multiple databases(Spring-boot)

I have multiple databases in springboot application. I am using liquibase configuration for automatic updation for databse.I configured master.xml…
madhuri
  • 103
  • 2
  • 11
2
votes
0 answers

LiquiBase changeset is being picked up, but not showing up in databasechangelog or in the database

I created a new changeset to add a new column to an existing table as shown below. I also added the key-property to the hbm.xml file of the usergroup table. It does get picked up according to the logs, and ran successfully, but it does not show up…
user1457145
  • 43
  • 1
  • 4
2
votes
1 answer

Liquibase seems to run changeset against database twice (or H2 database isn't getting cleaned)

So I'm trying to run integration tests in my jhipster application, which is currently (by default, haven't made any changes to the tests config) using a H2 database. I've run mvnw clean test and I get the following error: 2018-08-09 16:05:56.340 …
1 2
3
10 11