Пример #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;
  }