Java circular references

前端 未结 4 1345
伪装坚强ぢ
伪装坚强ぢ 2021-01-21 02:01

In the project im working on, people wrote services class to access DAO. Almost every business object has it\'s own service which use it\'s own DAO. On some services, we are usi

4条回答
  •  广开言路
    2021-01-21 03:00

    Let the OrderService just do things with orders. Let the ItemService just do things with items. Then create a OrderItemService which combines the two.

提交回复
热议问题