# Not seeing correct diffChangeLog between hibernate.cfg.xml and postgresql database

**URL:** <https://forum.liquibase.org/t/not-seeing-correct-diffchangelog-between-hibernate-cfg-xml-and-postgresql-database/1230>\
**Category:** General Discussion\
**Created:** [April 14, 2011, 7:49pm UTC](https://forum.liquibase.org/t/not-seeing-correct-diffchangelog-between-hibernate-cfg-xml-and-postgresql-database/1230 "2011-04-14T19:49:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrpardijs](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@mrpardijs](https://forum.liquibase.org/u/mrpardijs)\
**Post date:** [April 14, 2011, 7:49pm UTC](https://forum.liquibase.org/t/not-seeing-correct-diffchangelog-between-hibernate-cfg-xml-and-postgresql-database/1230/1 "2011-04-14T19:49:00Z")

</div>

I want to generate a changelog which reflects changes I’m making to my hibernate entity models, but it seems I’m not getting it to work.&nbsp;

I’ve updated one java class with a new column, and created to new entities in my java model, and added the new tables to my hibernate.cfg.xml.&nbsp;

So when I’m running a diffChangelog with the following parameters:

classpath=target/classes/

changeLogFile=mychangelogfile.

referenceUrl=hibernate:hibernate.cfg.xml

url=jdbc:postgresql://localhost/kis

driver=org.postgresql.Driver

username=kis

password=kis

logLevel=debug

I would expect to see a changelog with 2 new tables and one added column, but in stead I’m seeing almost all tables als changelog, except the 2 new ones I added.&nbsp;

I’m still confused which is the referenceUrl, the postgresql database or my hibernate.cfg.xml, so tried to swtich those, but then I get ( in the diff stdout) all my tables as Missing Tables.&nbsp;

So, in which of the two parameters should be the hibernate.cfg.xml, in the url or in the referenceUrl?

How come my new tables aren’t recognized by liquibase? Am I forgetting something?

I’m running liquibase 2.0.0 with liquibase-hibernate-2.0.0 in my LIQUIBASE\_HOME/lib directory.&nbsp;

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [April 14, 2011, 7:49pm UTC](https://forum.liquibase.org/t/not-seeing-correct-diffchangelog-between-hibernate-cfg-xml-and-postgresql-database/1230/2 "2011-04-14T19:49:00Z")

</div>

referenceUrl should be the hibernate configuration.

You don’t have hbm2ddl running which auto-generates tables, does it?

Nathan

---

<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:** [April 14, 2011, 7:49pm UTC](https://forum.liquibase.org/t/not-seeing-correct-diffchangelog-between-hibernate-cfg-xml-and-postgresql-database/1230/3 "2011-04-14T19:49:00Z")

</div>

Yes I did have the property hibernate.hbm2ddl.auto set to update, I will try it without it!
