简化CoreData关系

时间:2018-07-17 02:09:08

标签: swift core-data relationship

我正在尝试在实体之间建立关系,但这似乎太复杂了,甚至使我感到困惑。当前看起来像这样:

People:          HobbyGroup:        TeamGroup:        PeopleGroup:
hobbyGroup       hobby              leader            people
                 teamGroup          peopleGroup       contribution

People   <<-->   HobbyGroup  <<-->  TeamGroup  <<-->  PeopleGroup

有没有一种简化方法?

0 个答案:

没有答案