So why not give an entity all behavioral and state responsibilities, thus including the responsibility to perform persistence operations, as advocated by OO purists?
为什么不把所有的行为性和状态性职责都赋给实体呢,就像OO纯粹主义者所倡导的那样,让实体自己负责持久化操作。
So why not give an entity all behavioral and state responsibilities, thus including the responsibility to perform persistence operations, as advocated by OO purists?
为什么不把所有的行为性和状态性职责都赋给实体呢,就像OO纯粹主义者所倡导的那样,让实体自己负责持久化操作。
应用推荐