HQL Editor 找不到mapping怎么半?

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的.这是什么原因呢?

对你从未放弃
把LOG4J文件放 工程里看下
上一篇:java调用cmd命令 下一篇:java中的接口