could not resolve property: postcontentid of: com.

public List<Discuss> queryByIdForList(int postcontentid) {

return discussDao.findByPropertyForList(new QueryFilter("postcontent.id",postcontentid));

}

}


这个方法我写的时候是

public List<Discuss> queryByIdForList(int postcontentid) {

return discussDao.findByPropertyForList(new QueryFilter("postcontentid",postcontentid));

}

}


注意加黑字,hibernate操作的可都是对象,所以千万在写代码的时候注意!

你可能感兴趣的:(java,property,resolve,could,not)