futo
Session factory not created for configuration怎么解决
Myeclipse->open HQL Editor...
输入: from TUser t
右下角出现Session factory not created for configuration: 提示 ,其中hibernate.cfg.xml中 <mapping class=".../TUser"/>(Annotation)
可是当我换 <mapping resource="...TUser"/>却ok了,是什么原因?百思不解!
TUser.java中有Annotation,同时也都提供TUser.hbm.xml