The following error message appears when you run an example of hibernate
Exception in thread "main" Java.lang.ExceptionInInitializerError
At Com.hibernate.utils.hibernateutil.<clinit> (hibernateutil.java:21)
At Org.hibernate.samples.PersonManager.main (personmanager.java:23)
caused By:org.hibernate.MappingException:An Association from the table Order_intem_inf refers to an unmapped Class:prod Uct
At Org.hibernate.cfg.Configuration.secondPassCompileForeignKeys (configuration.java:1805)
At Org.hibernate.cfg.Configuration.originalSecondPassCompile (configuration.java:1739)
At Org.hibernate.cfg.Configuration.secondPassCompile (configuration.java:1424)
At Org.hibernate.cfg.Configuration.buildSessionFactory (configuration.java:1844)
At Org.hibernate.cfg.Configuration.buildSessionFactory (configuration.java:1928)
At Com.hibernate.utils.hibernateutil.<clinit> (hibernateutil.java:16)
... 1 more
From the error message, the class Product is not mapped to, but obviously the Product.hbm.xml file exists, and the mapping information is also filled out ah, and later the inspection found that it is in another reference to it only write "Product" instead of the full pathname.
Org.hibernate.MappingException:An Association from the table Order_intem_inf refers to a unmapped