| 发表于:2007-05-28 09:54:462楼 得分:0 |
楼上的兄弟,你说的加别名,然后用别名.对象属性,我前面就试过了。。通不过的。 下面是错误,无法识别属性,,你看到我的hql没有,我前面是对象名,后面的是数据库视图的字段名,正常情况下写hql,用的都是对象的属性啊。。 org.springframework.orm.hibernate3.hibernatequeryexception: could not resolve property: fkexamname of: com.ems.database.hibernate3.pojo.vexamsubjects [ from com.ems.database.hibernate3.pojo.vexamsubjects as v where v.fkexamname = ? order by cnumber, mnumber desc]; nested exception is org.hibernate.queryexception: could not resolve property: fkexamname of: com.ems.database.hibernate3.pojo.vexamsubjects [ from com.ems.database.hibernate3.pojo.vexamsubjects as v where v.fkexamname = ? order by cnumber, mnumber desc] org.hibernate.queryexception: could not resolve property: fkexamname of: com.ems.database.hibernate3.pojo.vexamsubjects [ from com.ems.database.hibernate3.pojo.vexamsubjects as v where v.fkexamname = ? order by cnumber, mnumber desc] ... | | |
|