【发布时间】:2012-03-27 08:02:16
【问题描述】:
我有这些模型(POJO)
class Participant {
String partid;
//getter setter
//and other old plain POJO methods
}
class Merchant {
Participant participant;
//getter setter
//and other old plain POJO methods
}
class Terminal {
Merchant merchant;
//getter setter
//and other old plain POJO methods
}
还有一个像这样过滤的控件视图类
ListTerminal implement ActionBean {
...
Terminal terminal;
//getter setter
...
}
然后在 .jsp 上我写了这样的东西
list_terminal.jsp
...
<td><s:text name="terminal.merchant.participant.partid" /></td>
...
然后弹出一个错误
org.hibernate.QueryException: 无法解析属性:merchant.participant.partid of: com.hpal.model.Terminal
【问题讨论】:
标签: java hibernate properties nested stripes