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
1
vote
1 answer

How to use diffExcludeObjects config to ignore all columns ending with id in all tables?

I want to ignore all columns that end with "_id" in all tables using liquibase maven plugin's diff command. When I run it using this config diffExcludeObjects=table:position, column:.*._id the diff ignores the columns in position that end with _id…
Kevin Liu
  • 11
  • 1
1
vote
1 answer

Can we monitor newly added data inside database table using Liquibase?

I want to monitor newly added data inside database table using Liquibase. I have found out that we can do Create, Insert, update, delete, rollback types of operations on table but I not sure whether we can perform read operation to see actual data.
Harsh
  • 47
  • 2
  • 9
1
vote
0 answers

How to create schemas dynamically using a single changeset liquibase

We are new to liquibase and gradle plugin we would like to create multiple schema's Was able to create this script but it only creates only the last schema 'temp5' and not the other schema's in the list, may be we are missing the knowledge of how…
user2359997
  • 561
  • 1
  • 16
  • 40
1
vote
1 answer

liquibase diff hibernate and jpa models vs an empty database throws could not build classFile

i have a multi microservices project, one microservice is named Foo, under the Foo service pom i added a plugin for liquibase with hibernate like so: org.liquibase liquibase-maven-plugin
Omar Ajmi
  • 180
  • 1
  • 13
1
vote
1 answer

Create a sequence with maximum row value from a table - Oracle with Liquibase

We are using liquibase to create and manage tables in Oracle. I have an issue while creating a sequence with max value of ID column from a table. In liquibase I have tried the following. Create Sequence id_sequence starts with (Select max(id)…
venkat
  • 442
  • 5
  • 17
1
vote
1 answer

Database Migration from one version to another using Liquibase

I rolled out the first version of application and a Postgres server is set up for the same. I am planning to roll out my second version of my application which has structural changes in my tables. For example : I had App table with a column called…
JITHIN_PATHROSE
  • 1,134
  • 4
  • 14
  • 29
1
vote
2 answers

LiquiBase diff & diffChangeLog doesn't detect changes

I'm trying to generate a changeset with the changes I made in my @Entitys I have the following gradle setup. I'm using these plugins liquibase-gradle-plugin liquibase-hibernate dependencies { …
Snæbjørn
  • 10,322
  • 14
  • 65
  • 124
1
vote
1 answer

Liquibase Hibernate diff exception

I am getting the following exception when trying to run a simple diff between an empty database and my hibernate entities. The exception seems to indicate that it cannot fetch catalognames. I am using a myqsl DB which is currently empty (no tables).…
1
vote
0 answers

Sql Script is not getting executed with liquibase

I have a spring boot application. I want to use liquibase with this application i have added the liquibase dependency in pom.xml. Please find the "liquibase-changelog.xml" file details below :-
1
vote
0 answers

dbm-gorm-diff tries to undo the defaultvalue migration in grails 3.3

I have a grails 3.3 project with postgres database. I am using Liquibase DB refactoring. Firstly, there seems to be a bug in grails due to which the migrations don't pick default value constraint from Grails Domain Class. To get over this issue, I…
1
vote
0 answers

Make Hibernate happy with Liquibase's "uuid"

Using JPA/Hibernate, defining an entity with the following field: @Id @Column(length = 36) private String id = UUID.randomUUID().toString(); Using Liquibase, knowing that this is a UUID, having the following in the change log:
Sander Verhagen
  • 8,540
  • 4
  • 41
  • 63
1
vote
1 answer

Creating Oracle sequences with Liquibase

Im wanting to create an auto incrementing number sequence for the primary id of the tables Im working with on Oracle. With Liquibase I can see that autoincrement for the column is not supported for Oracle in Add Auto Increment. So how can I go about…
nixgadget
  • 6,983
  • 16
  • 70
  • 103
1
vote
2 answers

JHipster Sample Gradle App liquibaseDiffChangelog command is throwing a "Driver class was not specified" exception

I am trying to get the Gradle liquibaseDiffChangelog command working with the JHipster Sample Gradle App and I am getting the following exception: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException:…
Andrew
  • 722
  • 9
  • 17
1
vote
1 answer

Run Environment specific changes from liquibase script

We are using liquibase for our database versioning. We use it to deploy the database changes to any layer e.g TST,AT and PROD.We build once and deploy the same changes to everywhere but we have certain things which should be deploy to specific…
unknown
  • 1,815
  • 3
  • 26
  • 51
0
votes
0 answers

liquibase-hibernate6: java.lang.UnsupportedOperationException: The application must supply JDBC connections

I've tried adding Liquibase to my project and to get the diff between entities and the database I've also added liquibase-hibernate6 to POM file. When I try the command: mvn liquibase:diff I get there error: [WARNING] HHH000181: No appropriate…