When we use both hibernate.properties and hibernate.cfg.xml in our class path then we see that hibernate.cfg.xml overrides to hibernate.properties.