In my case it resolves by adding configuration.addAnnotatedClass(com.myApp.model.Example.class);
after Configuration configuration = new Configuration().configure(HibernateUtil.class.getResource("/hibernate.cfg.xml"));
in hibernateUtill class.
It Read a mapping from the class annotation metadata .
Read more about addAnnotatedClass()
from here.