An association from the table refers to an unmapped class Hibernate Exception

An association from the table refers to an unmapped class Hibernate Exception

Got An association from the table

refers to an unmapped class exception while running hibernate on your app?
Here is a solution
Mostly it would be related to the hbm file of the table that it is complaining. On that hbm file, make sure if you have the class attribute on the option properly addressed like if you haven’t added the package on the top, make sure you provide the FQN of the class.

Also make sure if the hbm file is listed on the hibernate.cfg.xml/ where ever the list of the hbm files are listed.

Mostly this would solve the problem.

Adding Unicode character to mysql from Java-hibernate

Could not open Hibernate Session for transaction

Invocation of init method failed – hibernate exception of caching

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*