I study hibernate, AFAIK you can use xml or annotation, I like annotation more so trying this method.
- Automatically created hibernate.cfg.xml (Netbeans wizard)
- Automatically created reverse engineering xml
- Automatically created HibernateUtil.java
- Automatically created POJO class with annotations

then code:
SessionFactory session = HibernateUtil.getSessionFactory();
CallInfo ci = new CallInfo(1234567); //POJO class
session.getCurrentSession().save(ci);
and hibernate still wants the xml, why?
Exception in thread "main" java.lang.ExceptionInInitializerError
at ru.asteros.sochi.feedback.util.HibernateUtil.<clinit>(HibernateUtil.java:28)
at ru.asteros.sochi.feedback.SochiFeedback.main(SochiFeedback.java:52)
Caused by: org.hibernate.MappingNotFoundException: resource: ru/asteros/sochi/feedback/CallInfo.hbm.xml not found
at org.hibernate.cfg.Configuration.addResource(Configuration.java:563)
probably
CallInfo.hbm.xmlis referenced inhibernate.cfg.hbmand its not in valid class path