1) POJO classes and hbm.xml files must be in the same folder. 2) Hibernate.cfg.xml must be in the root of src folder.