Hibernate:如果class中使用了component ,如何得到該類全部屬性?

macula發表於2003-09-13
比如:
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

相關文章