Initial SessionFactory creation failed.org.hibernate.MappingException: Association references unmapped class: fr.synapture.model.company.Car. I am integrating Spring and Hibernate. My spring.xml is: bean id= sessionFactory class= org.springframework.orm. The topic here is How to disable sleep mode via CMD? Assuming you have configured the lid of your laptop to do nothing when closed: powercfg -x -standby-timeout-ac. On Windows 8, in the Advanced Power Settings (even though they're not that advanced), when you expand Power buttons and lid, there is an option called Sleep.