有如下 hql 语句: 
 String strSql = "from TaskBean t where id=? and planPerson=?";
 this.getHibernateTemplate().find( strSql, new Object[]{ id, personId});而像下面这样写确没有错误:
 String strSql = "from TaskBean t where id=? and planPerson=" + personId;
 this.getHibernateTemplate().find( strSql, new Object[]{ id});new Object{ id, personId}, 这两个参数是传过来 的,执行上面的 HQL语句报出下面这样的错误:PersonBean,getter method of property: idhibernate配置文件里面对应的属性节点:
<many-to-one name="planPerson" column="PLAN_PERSON" class="PersonBean" unique="true" lazy="false"/>
为什么会报这样的错误,问题出在哪里呢?还请指教?