日期:2014-05-19 浏览次数:20803 次
@Entity @Table(name = "bg_content") public class BgContent extends IdEntity{ private String content; private List<BgPic> lBasePic; @OneToMany(fetch = FetchType.EAGER) @JoinColumn(name = "cont_id") public List<BgPic> getlBasePic() { return lBasePic; } }
@Entity @Table(name = "bg_pic") public class BgPic extends IdEntity{ private String pic_path; private Long cont_id; }
public String list() throws Exception { page = mng.getAllPage(page); return SUCCESS; }
<s:iterator value="page.result" id="pa" > ${pa.lBasePic } <s:iterator value="lBasePic "> --ww </s:iterator> </s:iterator>