# Hibernate diffDatabaseToChangeLog can't find mapping files

**URL:** <https://forum.liquibase.org/t/hibernate-diffdatabasetochangelog-cant-find-mapping-files/2165>\
**Category:** General Discussion\
**Created:** [December 4, 2012, 1:02am UTC](https://forum.liquibase.org/t/hibernate-diffdatabasetochangelog-cant-find-mapping-files/2165 "2012-12-04T01:02:00Z")\
**Posts on this page:** 1\
**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:** [December 4, 2012, 1:02am UTC](https://forum.liquibase.org/t/hibernate-diffdatabasetochangelog-cant-find-mapping-files/2165/1 "2012-12-04T01:02:00Z")

</div>

I am trying to get a diffDatabaseToChangeLog and I have everything working except that I must define hard coded paths in my hibernate.cfg.xml file:

1. 

I am using Spring and so it actually manages the cfg.xml files through its _sessionFactory mappingLocations_ property. The only reason I need the cfg.xml file is so that liquibase can get the files. How can I use a non-hard coded path?
