IllegalArgumentException occurred calling getter of
MR
.id
2013-03-05 13:50:27,843 ERROR [org.hibernate.property.BasicPropertyAccessor] -
IllegalArgumentException
in class:
MR
, getter method of property: id
org.hibernate.PropertyAccessException
:
IllegalArgumentException
occurred calling getter of
MR
.id
错误语句:
q = (
MM
)
dao
.findUniqueBy(
MM
.
class
,
"questionId"
, id);
修改为:
q= (
MM
)
dao
.findUniqueBy(
MM
.
class
,
"questionId.id"
, id);
即可
说明:
MM实体:
坑爹啊,尼玛,居然要这么个写法,大神给解释一下呗.