java - Hibernate org.hibernate.MappingException -




i created hibernate application using eclips maven project. works fine. created project , import hibernate project , try save object main project. give me below excetion

org.hibernate.mappingexception: unknown entity: io.klaver.core.model.workspace; msg: unknown entity:

i have added hibernate.cfg.xml in correct place in library project. reason

import project existing maven project.

and make sure have entityname.hbm.xml.

and in hibernate.cfg.xml add:

<!-- list of xml mapping files --> <mapping resource="com/sow/application/entityname.hbm.xml"/> 




wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -