以下のように Employee.hbm.xml のマッピングでエラーが発生した場合でも、プロジェクトを正しく構成しています。
ここに私の例外コードがあります
Exception in thread "main" java.lang.ExceptionInInitializerError
at net.viralpatel.hibernate.HibernateUtil.buildSessionFactory(HibernateUtil.java:16)
at net.viralpatel.hibernate.HibernateUtil.<clinit>(HibernateUtil.java:8)
at net.viralpatel.hibernate.Main.list(Main.java:26)
at net.viralpatel.hibernate.Main.main(Main.java:75)
Caused by: org.hibernate.MappingNotFoundException: resource: net/viralpatel/hibernate/Employee.hbm.xml not found
at org.hibernate.cfg.Configuration.addResource(Configuration.java:738)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:2188)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:2160)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2140)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2093)
at org.hibernate.cfg.Configuration.configure(Configuration.java:2008)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1987)
at net.viralpatel.hibernate.HibernateUtil.buildSessionFactory(HibernateUtil.java)
これに対する任意の提案..