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

Why the liquibase doesn't generate the change log from JPA entities?

I would like to generate diff between the current database in oracle and entities. But the diff is not generated properly and I think that liquidate doesn't see my entities. I have created liquibase property file with these…
Jeriiii
  • 41
  • 2
4
votes
0 answers

Liquibase diff: Unexpected error running Liquibase: Unable to load class [com.company.product.model.persist.Address]

I am trying to use the liquibase-hibernate plugin to facilitate db migrations in my Kotlin project. My build.gradle.kts file is configured as follows: plugins { [...] id("org.liquibase.gradle") version "2.0.1" [...] } dependencies { …
Sloth Armstrong
  • 1,066
  • 2
  • 19
  • 39
4
votes
1 answer

"Cannot find database driver: Driver class was not specified and could not be determined from the url" error on using liquibase-hibernate plugin

I am trying to generate changeLog from diffs between a Database and Persistence Entities. I am using the liquibase hibernate plugin org.liquibase
JITHIN_PATHROSE
  • 1,134
  • 4
  • 14
  • 29
4
votes
2 answers

Liquibase not updating column data type when changed in Entity class through Spring Data JPA

In the Spring Boot, Spring Data JPA project, I have an entity class named Country with few columns. I generated changelog and applied it with the following commands $ mvn process-test-resources $ mvn process-resources It created tables using…
Pavan Jadda
  • 4,306
  • 9
  • 47
  • 79
4
votes
0 answers

Liquibase Gradle plugin appears to have url and referenceUrl reversed

I have a very simple Spring Boot 2.0.4 project. Following the various examples for setting up the Liquibase Gradle plugin I wanted to be able to run the diffChangeLog target to update my change log XML file. The configuration looks like…
Paul
  • 2,698
  • 22
  • 27
4
votes
1 answer

Liquibase Hibernate inconsistency

After upgrading to Spring Boot 1.4.2 and Hibernate 5, I can't get schema generation through Liquibase Hibernate to work correctly anymore. I switched to liquibase-hibernate5 3.6 and sorted out the naming strategy, but I'm still stuck on two…
Bert
  • 861
  • 9
  • 22
3
votes
0 answers

Hibernate- Liquibase throwing exception : java.lang.UnsupportedOperationException: The application must supply JDBC connections

I am trying to generate changelog based on DB and Entity class My Liquibase properties file is as…
3
votes
2 answers

I see error with surefire error even though all my test pass, no anwers related to surefire plugin helped me

Recently i migrated surefire plugin from 2.15 to 3.0.0-M5 and i see this below error even though all the test case passed. i dont see anything in report generated, just a empty file. Google nor stackoverflow helped me. Trying this out for almost a…
dishanm
  • 110
  • 1
  • 11
3
votes
0 answers

Liquibase hibernate annotation warning when running diff maven goal

I am using liquibase with hibernate to generate diff based on JPA entities. However when I run diff maven goal I get the following warning: Namespace of the [javax.xml.bind.annotation.XmlSchema] annotation does not match…
cvetan
  • 393
  • 1
  • 3
  • 19
3
votes
3 answers

Force liquibase to current_timestamp instead of now()

Using liquibase-core:3.6.3 with MySQL. For the first time I have to use a timestamp(3) for a column instead on default timestamp. As my timestamp columns are not nullable, if no DEFAULT value is set, the current_timestamp is added (either directly…
luso
  • 2,812
  • 6
  • 35
  • 50
3
votes
1 answer

Liquibase - Generating Change Logs

I want Liquibase, to generate a changelog, from this DB 'testing'. Is it possible? I have an existing database already, with its tables and data inside. jdbc:mysql://localhost:3306/testing Now, I want Liquibase, to generate a changelog, from this…
Hendra
  • 115
  • 3
  • 9
3
votes
1 answer

Liquibase and Hibernate ddl-auto=update with Spring Boot

I am integrating liquibase in Spring boot project. I am planning to let hibernate run DB schema changes and run remaining DML queries via liquibase. Is it good practice to manage DB changes via both Liquibase and Hibernate at the same time ? Are…
Kapish Malik
  • 31
  • 1
  • 3
3
votes
1 answer

How do configure liquibase-maven-plugin for spring-boot and hibernate

I have very typical application stack: spring-boot:1.5.X, hibernate:5.X, maven and liquibase. There is simple to configure liquibase with spring boot without adding some configuration files especially for liquibase. But I would like to create…
Bukharov Sergey
  • 9,767
  • 5
  • 39
  • 54
3
votes
1 answer

Using Liquibase and Spring Boot

I have a Spring Boot application and want to use Liquibase to generate the changelogs for my JPA entities. However, I encounter different issues, depending on my approach. My first approach is to use the diff goal of the maven plugin. The url is my…
nils
  • 1,362
  • 1
  • 8
  • 15
3
votes
2 answers

How to use liquibase to generate a changelog from diffs between a database and persistence entities in spring?

Please i need solution to the above question in spring (JAVA based config) and NOT in spring boot. Most of the tutorials i found online are based on spring boot but my app is not running on spring boot, just spring mvc. I have the necessary…
Perry
  • 312
  • 1
  • 4
  • 12
1
2
3
10 11