[时间]:2009-5-20
[错误]:
Hibernate提示:
Unknown entity: wintys.hibernate.BookAuthor
[解决]:
在hibernate.cfg.xml中没有加入"BookAuthor.hbm.xml"。
加上如下配置行即可:
<mapping resource="wintys/hibernate/BookAuthor.hbm.xml" />
[错误]:
Hibernate提示:
Unknown entity: wintys.hibernate.BookAuthor
[解决]:
在hibernate.cfg.xml中没有加入"BookAuthor.hbm.xml"。
加上如下配置行即可:
<mapping resource="wintys/hibernate/BookAuthor.hbm.xml" />