futo
HQL Editor 找不到mapping怎么半?
在myEclipse里的open HQL Editor里输入 "from java.lang.Object",
显示 "HQL was valid, but no SQL generated. Your configuration most likely does not have any mappings defined."
而hibernate.cfg.xml里明明写了 <mapping class="XXX"/>
hibernate.cfg.xml配置应该是对的,因为跑Junit增删查都ok的.这是什么原因呢?