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
Post a Comment