//下面是程序。
----------------------------------
public class StockOrder
    implements Serializable {
  /**
   * @return Returns the stordId.
   */
  public String getStordId() {
    return stordId;
  }  /**
   * @param stordId The stordId to set.
   */
  public void setStordId(String stordId) {
    this.stordId = stordId;
  }  /**
   * @return Returns the orderDetail.
   */
  public Set getOrderDetail() {
    return orderDetail;
  }  /**
   * @param orderDetail The orderDetail to set.
   */
  public void setOrderDetail(Set orderDetail) {
    this.orderDetail = orderDetail;
  }  private String stordId;
  private Set orderDetail;
}

解决方案 »

  1.   

    public class StockOrderDetail
        implements Serializable {
      /**
       * @return Returns the stdilId.
       */
      public String getStdilId() {
        return stdilId;
      }  /**
       * @param stdilId The stdilId to set.
       */
      public void setStdilId(String stdilId) {
        this.stdilId = stdilId;
      }  /**
       * @return Returns the storderId.
       */
      public String getStorderId() {
        return storderId;
      }  /**
       * @param storderId The storderId to set.
       */
      public void setStorderId(String storderId) {
        this.storderId = storderId;
      } /**
     * @return Returns the bpmStockOrder.
     */
    public BpmStockOrder getBpmStockOrder() {
    return bpmStockOrder;
    }
    /**
     * @param bpmStockOrder The bpmStockOrder to set.
     */
    public void setBpmStockOrder(BpmStockOrder bpmStockOrder) {
    this.bpmStockOrder = bpmStockOrder;
    }
    private String stdilId;
    private String storderId;
    private BpmStockOrder bpmStockOrder;
    }
      

  2.   

    StockOrderDetail 是many,StockOrder 是one 了
      

  3.   

    肯定是与数据库的问题了.一定是我写的那个什么MANY-TO-ONE 或者是ONE-TO-MANY 的问题.