示例#1
0
  public DemoOrder removeDemoOrder(DemoOrder demoOrder) {
    getDemoOrders().remove(demoOrder);
    demoOrder.setDemoUser(null);

    return demoOrder;
  }
示例#2
0
  public DemoOrder addDemoOrder(DemoOrder demoOrder) {
    getDemoOrders().add(demoOrder);
    demoOrder.setDemoUser(this);

    return demoOrder;
  }