# Hibernate liquibase diffchangelog not working

**URL:** <https://forum.liquibase.org/t/hibernate-liquibase-diffchangelog-not-working/2200>\
**Category:** General Discussion\
**Created:** [February 24, 2013, 7:26am UTC](https://forum.liquibase.org/t/hibernate-liquibase-diffchangelog-not-working/2200 "2013-02-24T07:26:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://forum.liquibase.org/u/Guest)\
**Post date:** [February 24, 2013, 7:26am UTC](https://forum.liquibase.org/t/hibernate-liquibase-diffchangelog-not-working/2200/1 "2013-02-24T07:26:00Z")

</div>

Team,

I would like to know if my understanding correct regarding hibernate liquibase mapping&nbsp;

Initial state

Target database : test (with zero tables)

Reference database : Hibernate (All mapping file exists)

Following action performed

1. &nbsp;To generate initial change set log

**java -jar liquibase.jar &nbsp; diffChangeLog &nbsp;--referenceUrl=hibernate:hibernate.cfg.xml**

output =\> test.xml

1. Update the database so that hibernate and target datasource in sync

**java -jar liquibase.jar &nbsp; update &nbsp;**

Now whenever I add or remove field from hibernate mapping file for example contact.hbm.xml &nbsp; I removed following field

and when I again run diffChangeLog using following command

**java -jar liquibase.jar &nbsp; diffChangeLog &nbsp;--referenceUrl=hibernate:hibernate.cfg.xml**

My Expectation&nbsp;

Following change set will get&nbsp;appended to the test.xml&nbsp;&nbsp;

Actual Result

No change happening in test.xml

Mayank

#liquibase.properties-

driver:com.mysql.jdbc.Driver&nbsp;

url: jdbc:mysql://localhost:3306/test

#url:hibernate:hibernate.cfg.xml&nbsp;

username:root

password:

changeLogFile:test.xml

classpath:lib/mysql-connector-java-5.1.23-bin.jar:/home/mayank/dev/ads/services/impl/src/main/resources/hibernate/:lib/hibernate-annotations-3.5.1-Final.jar:lib/hibernate-core-3.5.1-Final.jar:lib/hibernate-commons-annotations-3.2.0.Final.jar:lib/hibernate-jpa-2.0-api-1.0.0.Final.jar:lib/dom4j-1.6.1.jar:lib/liquibase-hibernate-2.0.0.jar:lib/h2-1.2.137.jar:lib/slf4j-api-1.6.0.jar

Mayank

---

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://forum.liquibase.org/u/Guest)\
**Post date:** [February 24, 2013, 7:26am UTC](https://forum.liquibase.org/t/hibernate-liquibase-diffchangelog-not-working/2200/2 "2013-02-24T07:26:00Z")

</div>

Correction in my question&nbsp;

Expectation should be&nbsp;
