Hibernate:如果class中使用了component ,如何得到该类全部属性?
比如:
UserVO 含有 component 对象 UserInfo,包括属性username,password
select uservo from UserVO as uservo
执行会报错:
1 errors occurred while listing (and calling getPathNames).
exception setting property value with CGLIB setter of cn.mBig.experience.vo.UserVO.?
但是
select uservo.id from UserVO as uservo
select uservo.useriInfo from UserVO as uservo
都是可以。
没有办法得到整个UserVO对象吗?
Hibernate 2.0.3