【问题标题】:Spring Roo Master/Detail & @OneToManySpring Roo Master/Detail & @OneToMany
【发布时间】:2011-09-12 11:59:13
【问题描述】:

参考Problem with @OneToMany annotation with Spring Roo 解决方案适用于 create & update.jspx。知道如何让它为 show.jspx 工作吗?

【问题讨论】:

    标签: spring master-detail hibernate-onetomany


    【解决方案1】:

    经过多次反复试验,我找到了一个可行的组合。

    来自我的 update.jspx:

    <field:select field="venueConfig" id="c_net_sf_bookright_entity_Venue_venueConfig" itemValue="id" items="${venueconfigs}" multiple="true" path="/venueconfigs" z="2LbToeFzkMFCLmDKmonFK/d1IgU="/>
    

    ...show.jspx 中需要以下内容:

    <field:select field="venue.venueConfig" id="s_net_sf_bookright_entity_Venue_venueConfig" itemValue="id" items="${venue.venueConfig}" multiple="true" path="/venueconfigs" z="2LbToeFzkMFCLmDKmonFK/d1IgU="/>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-12
      • 2021-11-11
      • 1970-01-01
      • 1970-01-01
      • 2011-12-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多