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
0
votes
0 answers

How to Write a Liquibase Script for updating Data value in a column?

I have a table in which i need to alter the data in the column.How do i write the Liquibase script for that? id Cause 1 Invalid Dat 2 Invalid Currency cannot be processed I want to change "Invalid Currency cannot be processed" to "Invalid Currency…
0
votes
1 answer

Liquibase changes the url from jdbc:mariadb://127.0.0.1:3307/db to jdbc:mysql://127.0.0.1:3307/db

I'm trying to generate changelog from an existing database using liquibase. But, whenever I run the cmd mvn liquibase:generateChangeLog it exits with the following exception liquibase.command.CommandExecutionException:…
0
votes
0 answers

Unable to extract Result Set

I am not new to hibernate but facing some strange issue with it. My Java base application build upon Java 8, JSF, Hibernate 5.1 and Oracle 19C data base and liquibase. Adding a property into to existing table is pretty straight forward task but I am…
0
votes
1 answer

Integrate liquibase extension in liquibase-maven-plugin

i would like to integrate one of those extensions in liquibase-maven-plugin how can i do please or even how to create my own plugin using liquibase the plugin in pom.xml org.liquibase
0
votes
0 answers

liquibase - how to change default type for column

Is there a way to force liquibase into using different db type for a column of generic type? I've seen this: Force Liquibase to map Blob to BYTEA on PostgreSQL and it's not what I would like to do, since changelog is generated by maven plugin, and I…
Miron Balcerzak
  • 886
  • 10
  • 21
0
votes
1 answer

How to properly configure Liquibase in Spring Boot with Maven plugin so that a I can run diff command using latest version

When I try to execute liquibase diff command, I get the following error: ERROR [liquibase.integration.commandline.Main]: Unexpected error running Liquibase: java.lang.RuntimeException: Cannot find database driver:…
0
votes
1 answer

Add prefix to table names in liquibase using Java Spring JPA

I'm searching for a way to automatically add a prefix to my table names when liquibase executes my xml files. For example, if this is my initial-changelog.xml:
Thomas Verhoeven
  • 238
  • 3
  • 16
0
votes
1 answer

Liquibase to execute postgres method through Springboot

I am trying to execute below sql method using liquibase in springboot, other than method it's possible to execute any sql queries. Below query gets executed without error when it's executed in psql terminal which works fine as expected. --changeset…
0
votes
1 answer

Problem in converting varchar2 column to clob data type in Oracle database

I have one Person table in my database. I am using Oracle database. I have one column ADDRESS which has varchar2 datatype. I want to change datatype of this column from varchar2 to clob. I am doing this change by Liquibase. Here is my change…
0
votes
1 answer

Is it possible to calculate liquibase:diff with liquibase-hibernate plugin and hibernate orm xml?

I am aware of liquibase:diff which could give me the difference scripts between my databases. I am trying to generate the difference scripts between my database and my jpa entity. I have my hibernate orm.xml of my jpa entity and I want to find out…
JITHIN_PATHROSE
  • 1,134
  • 4
  • 14
  • 29
0
votes
1 answer

Liquibase-Hibernate: How to generate changelog from Spring-Boot JPA entities?

I'm having troubles generating the initial changelog from the JPA Entities of my Spring-Boot project. My pom.xml is as follows:
1Z10
  • 2,801
  • 7
  • 33
  • 82
0
votes
1 answer

How to display output of diffChangeLog command on console only?

I am working on Liquibase commands for database schema versioning. Currently I am working with diffChangeLog command. Below is the sample format which I am working on…
Rohan
  • 29
  • 1
  • 3
0
votes
0 answers

Diff does not detect that index exists

When I generate the first diff. The diff file looks correct. It has the tables that we need to create. I run the app, it creates the tables (Oracle), all is good. For validation purposes I run the diff command again, expecting for it to return with…
Dot Batch
  • 608
  • 6
  • 17
0
votes
2 answers

How to copy a database schema from database A to database B

I have created a Postgresql database A using liquibase changesets. Now, I'm creating an application that allows creating a new database B and copies the schema from database A in real-time including the liquibase changesets as the database can still…
czetsuya
  • 4,773
  • 13
  • 53
  • 99
0
votes
1 answer

How to use liquibase cmd with db2 ssl connection?

I'm trying to run liquibase update command using liquibase --driver="com.ibm.db2.jcc.DB2Driver" --changeLogFile="masterchangelog.xml " --url="jdbc:db2://localhost:60001/SMDINTDB:retrieveMessageFromServerOnGetMessage=true;sslConnection=true;" …
Vishnu
  • 97
  • 1
  • 13