Hibernate - connect to database and run query.

Sorry for lame question, but I`ve got a problem - can`t connect to MySQL dbs via hibernate with set up plugins in NetBeans IDE. I had created 2 files hibernate.cfg.xml and hibernate.hbm.xml then imported hibernate packeges and class compiled with error:

Hi. You have mistake in xml-mapping your model. Can you show your model and hibernate.hbm.xml. By the way. don't call mapping file like this, more understandable ti call it as like model file. for example model User.java and mapping file User.hbm.xml.