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

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

    return demoOrder;
  }