org.hibernate.PropertyNotFoundException: Could not find a setter for HibernateJavaAccessXML
程序员文章站
2022-03-03 21:36:55
...
问题:org.hibernate.PropertyNotFoundException: Could not find a setter for property id in class
我的原因是: hbm.xml中 少了access="field"如:
我的原因是: hbm.xml中 少了access="field"如:
<property name="parentDpId" type="java.lang.String" access="field"> <column name="PARENTDPID" length="32"> <comment>上级组织架构的ID</comment> </column> </property>
上一篇: Caused by: org.apache.solr.common.SolrException: Invalid UUID String: '1'
下一篇: org.hibernate.PropertyNotFoundException: Could not find a setter for HibernateJavaAccessXML
推荐阅读
-
hibernate异常找不到get方法org.hibernate.PropertyNotFoundException: Could not find a get
-
hibernate异常找不到get方法org.hibernate.PropertyNotFoundException: Could not find a get
-
hibernate实体类报错:Could not find a setter for property * in class * 解决方法
-
Could not find setter for ID on class com.iflytek.civilAffairs.pojo.MzywShswcYtwy
-
org.hibernate.PropertyNotFoundException: Could not find a setter for HibernateJavaAccessXML
-
org.hibernate.PropertyNotFoundException: Could not find a setter for HibernateJavaAccessXML