Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有三个类:User、Address 和 OrderProduct。
用户具有姓名、电话号码和地址等字段,其中地址是地址的一个实例。
如果处理产品订购的 OrderProduct 类需要存储在 User 中的地址,我是否只需将 User 列为协作者,还是需要将 Address 类包含为协作者,因为 User 类包含该地址?
只是用户,因为它需要它来获取地址。地址本身只是数据。