MyException - 我的异常网
当前位置:我的异常网» Java相关 » Caused by: org.hibernate.PropertyNotFoundExcepti

Caused by: org.hibernate.PropertyNotFoundException: field not (3)

www.MyException.Cn  网友分享于:2013-11-26  浏览:1662次

  <property name="m_password" not-null="true"/>
  <property name="m_name" not-null="true"/>
  <property name="logDate" not-null="true" />
  </class>
</hibernate-mapping>

------解决方案--------------------
public String name ; 

<property name="m_name" not-null="true"/>

配置文件和实际javaBean的属性不相符。系统无法映射。导致Hibernate报Caused by: org.hibernate.PropertyNotFoundException: field not found: m_name 
说的就是没有发现属性m_name

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有