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

Generate changlog from JPA entities using Liquibase Maven plugin

I want to add Liquibase DB migration support to my project. It uses Spring Boot too. Now I want to generate the changelog without a DB connection just by using Hibernate and the JPA entity classes. But it throws an error: mvn…
Michael
  • 2,528
  • 3
  • 21
  • 54
2
votes
0 answers

How to run the rollbacktag of Liquibase in Jhipster?

and tried to rollback tag of liquibase in jhipster, but I do not succeed. def liquibaseCommand(command) { javaexec { if (OperatingSystem.current().isWindows()) { classpath files(pathingLiquibaseJar.archivePath) } else…
2
votes
1 answer

Liquibase-hibernate plugin with orm.xml configuration

Im thinking about starting a java project with the idea of separate the domain classes from everything related to the persistence layer. Then, I want to use hibernate or jpa with the xml mappings configuration (in a orm.xml file) and with liquibase…
Ariel Kohan
  • 674
  • 4
  • 15
2
votes
1 answer

Liquibase addAutoIncrement error with Postgresql

I am having a problem when trying to create autoincrement with the liquibase along with the spring boot with following error
2
votes
2 answers

Wrong column type in mapping UUID as field to a mysql database

I have defined a domain class which has "java.util.UUID" as its "Id" field. @Entity class Response{ @Id @GeneratedValue(generator = "myUUIDGenerator") @GenericGenerator(name = "myUUIDGenerator", strategy = "uuid2") @Column(columnDefinition =…
Soumya
  • 1,833
  • 5
  • 34
  • 45
2
votes
1 answer

How to generate xml file from DatabaseChangeLog programmatically

I made changes on a DatabaseChangeLog object programmatically. How could I generate the diffChangeLogFile file based on that DatabaseChangeLog from java. EDIT: here is an example public DatabaseChangeLog removeDropColumnChangeFromDatabaseChangeLog( …
larnouch
  • 189
  • 1
  • 15
2
votes
1 answer

Difference Between setDefaultSchemaName() and setLiquibaseSchemaName() in Liquibase

Difference Between setDefaultSchemaName() and setLiquibaseSchemaName() in Liquibase? What is the use of both the methods in Liquibase ?
Asarudeen A
  • 59
  • 1
  • 11
2
votes
2 answers

Liquibase throws "SQLException: connection is closed"

ERROR [kernel-Executor-1] liquibase: classpath:config/liquibase/changelog/00000000000000_initial_schema.xml::00000000000001::jhipster: Could not release lock liquibase.exception.LockException: …
jait23
  • 71
  • 2
  • 8
2
votes
2 answers

Can't get Liquibase gradle plugin to work with Spring JPA application

I'm trying to generate a diff change log between the existing database and our Spring JPA application. Generating the initial changeLog is successful now and for the diff, I managed to get past the class path issues (with great help of StackOverflow…
Bert
  • 861
  • 9
  • 22
2
votes
1 answer

Can't get work Liquibase with spring hibernate

Till now, I have used liquibase with spring and standard changelog file. Now I want to integrate it to hibernate so when I do any change to entity, it should change tables and update changelog table. I read many examples, and tutorials and can't get…
Erlan
  • 2,010
  • 1
  • 22
  • 31
1
vote
1 answer

How to execute Set escape \; in liquibase

There are several insert sql statements which have \ in them. Originally the statements were written for manual execution from sql developer. So SET ESCAPE ; would work and the insert scripts also would be inserting the values as per…
Harsh
  • 11
  • 1
1
vote
0 answers

Integration test doesn't work with liquibase, throws: Failed load ApplicationContext

I wrote integration test but it doesn't work. It throws Failed load ApplicationContext. I think problem with liquibase but I hadn't fix that. Other tests are worked but it didn't. My entity liquibase xml file:
1
vote
0 answers

Is it possible to execute same liquibase for 2 applications at same time

I have two applications needs to be deployed at same time. Both having some common code, which is in another repo. In that common repo i have liquibase file. When i start the applictaions with time gap this liquibase is executing and not causing…
1
vote
0 answers

How to get rid of Liquibase 4.0 error : Please use a relative path or add '/' to the classpath parameter

How to solve this error? Specifying files by absolute path was removed in Liquibase 4.0. Please use a relative path or add '/' to the classpath parameter. Suppose I don't have the liquibase installed. I just want to run my Spring project connected…
1
vote
2 answers

JSONB usage with liquibase-hibernate5 not supported through liquibase maven plugin?

I am trying to get JSONB type working with liquibase-hibernate5 extension, but without any luck. I am using liquibase core and the extension version 4.10. I am using liquibase within Spring boot 2.5.14. I have added my own dialect file of Postgres…