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

Create @GeneratedValue sequence in hibernate and liquibase

In liquibase I added a script for creating a database and also use in Java / Spring Entity with GeneratedValue and my SequenceGenerator. In the case of the script in liquibase, do I have to add the generation of the identifier with the sequence to…
Dev007
  • 366
  • 1
  • 12
1
vote
0 answers

mvn Liquibase:diff A required class was missing while executing org.liquibase:liquibase-maven-plugin:3.8.1:diff: javax/xml/bind/annotation/XmlSchema

I am trying to generate liquibase changelogs based on jpa entities using maven-hibernate-plugin so I can use the generated chagelogs to create my database. I followed the https://www.baeldung.com/liquibase-refactor-schema-of-java-app sample but with…
1
vote
0 answers

Liquibase PostgreSQL sequence re-generation

I migrated Liquibase from version 3 to 4.5 and Liquibase re-generates all existing sequences. I have the following changeset in my main changelog
Radouane ROUFID
  • 10,595
  • 9
  • 42
  • 80
1
vote
0 answers

Liquibase Maven Plugin Error: Provider liquibase.serializer.core.xml.XMLChangeLogSerializer could not be instantiated

I am having trouble getting my changelog to be compiled, due to Liquibase not being able to load the correct Serializer. Anyone know what the issue could be? Here is my config: org.liquibase
Borzi
  • 537
  • 1
  • 5
  • 21
1
vote
0 answers

Liquibase generates dropdefault change set when nothing has changed

I am trying to generate liquibase changeset programtically using liquibase and liquibase-hiberante using the code below Class.forName("org.mariadb.jdbc.Driver"); Connection connection =…
arshid dar
  • 1,355
  • 2
  • 15
  • 23
1
vote
1 answer

Generate production sql from liquibase

I have used liquibase 3.8.9 version on my spring boot application for database versioning and now I need to generate an sql for the production environment (we cannot run liquibase from the app). I have some issues for which I haven't found any…
Dorin
  • 2,167
  • 4
  • 20
  • 32
1
vote
2 answers

Changeset requirement to identify unique change to execute by liquibase

I came across the below document for liquibase but confused about the wording on how it identifies the unique change. https://docs.liquibase.com/concepts/basic/changeset.html It says: 'If it has been run, the changeset will be skipped unless there…
bhagya
  • 41
  • 4
1
vote
1 answer

liquibase-maven-plugin and hibernate: diff command does not produce any changeset

I am trying to put together liquibase and hibernate to generate new changesets as entities are developed or updated. I already enjoyed liquibase in a non-jpa scenario so I decide to use it in this usecase. I think I set up everything properly (check…
Francesco
  • 1,742
  • 5
  • 44
  • 78
1
vote
2 answers

Liquibase Installation Troubleshooting

Liquibase was install in the following location C:\liquibase when I run the following command on cmd, liquibase I get error the system can not find specified path I added liquibase to system variable when I run the following command on cmd java…
Vitor Mira
  • 93
  • 10
1
vote
1 answer

how to load sequence currvalue and incremenBy from database using liquibase?

I am trying to alter the sequence using liquibase from databases "Oracle" and "Postgres" get the sequence current_value and incrementBy and set to the minvalue = current_value + incrementBy and start = current_value + incrementBy. below is the…
Gaali Prabhakar
  • 583
  • 6
  • 23
1
vote
1 answer

Liquibase ignores DB content and creates diff from scratch

I have a project based on Spring Boot and Hibernate. I use Liquibase for migrations. Every time I run mvn liquibase:diff it makes a full changeset based on my models like my Postgres DB is completely empty. I expect Liquibase to create only delta.…
Alesto
  • 639
  • 4
  • 13
  • 29
1
vote
2 answers

HTTP 403 while accessing http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd from my project code

While doing a maven build, getting 403 response for liquibase. Building the project with command "mvn clean install -Pinitdb". Entire logs are liquibase.exception.ChangeLogParseException: Error parsing line 6 column 122 of…
Hatz
  • 56
  • 6
1
vote
1 answer

Does liquibase support data migration from one database to another

I have a scenario where we are migrating from Oracle DB to Postgres Sql, I know I can generate a change-log from Oracle schema using liquibase maven plugin and can use the same to create my schema in Postgres. What i want to know is if its possible…
1
vote
1 answer

Getting error on dropping the unique constraint column of a table in liquibase

Getting this error when i tried to delete app_user_id column. I did remove the foreign key relation of app_user_id table. But idk why I am getting this only on running a test case. stackTrace SEVERE 2/5/20 2:25 PM: liquibase:…
1
vote
0 answers

Multi module liquibase project

I have a multi module spring boot application backed by maven. There is a parent pom.xml which defines all the dependencies. There are 2 modules A and B. Module B is dependent on module A. Both the modules are spring applications and I have…