<ddd--領域驅動設計學習>討論--------倉儲
<ddd--領域驅動設計學習>討論--------倉儲
倉儲委託合適的基礎結構來完成自己的工作,把儲存,檢索,查詢封裝起來還是倉儲的實現的最基本的特性。
還有看到網上的一句話:
“可以理解Repository就是對Dao的封裝,不同點在於Repository只返回model或者model的集合,而dao則可以返回的更多比如返回一些統計資料。”
---------是不是還可以說:倉儲跟dao的不同是因為倉儲還包括一些業務的邏輯。
老馬的一段話:
“A Repository mediates between the domain and data mapping layers, acting like an in-memory domain object collection. Client objects construct query specifications declaratively and submit them to Repository for satisfaction. Objects can be added to and removed from the Repository, as they can from a simple collection of objects, and the mapping code encapsulated by the Repository will carry out the appropriate operations behind the scenes.
Conceptually, a Repository encapsulates the set of objects persisted in a data store and the operations performed over them, providing a more object-oriented view of the persistence layer. Repository also supports the objective of achieving a clean separation and one-way dependency between the domain and data mapping layers.”
----------acting like an in-memory domain object collection.
象一個在記憶體裡的領域物件一樣運作著。倉儲 就像 記憶體管理器一樣,應該是快取吧。 可以存放物件,刪除物件。是不是可以理解:倉儲具有操作物件(CRUD)功能的快取呢?
各位老師能不能說一下 倉儲怎麼存放物件?是存到DB裡面嗎
倉儲委託合適的基礎結構來完成自己的工作,把儲存,檢索,查詢封裝起來還是倉儲的實現的最基本的特性。
還有看到網上的一句話:
“可以理解Repository就是對Dao的封裝,不同點在於Repository只返回model或者model的集合,而dao則可以返回的更多比如返回一些統計資料。”
---------是不是還可以說:倉儲跟dao的不同是因為倉儲還包括一些業務的邏輯。
老馬的一段話:
“A Repository mediates between the domain and data mapping layers, acting like an in-memory domain object collection. Client objects construct query specifications declaratively and submit them to Repository for satisfaction. Objects can be added to and removed from the Repository, as they can from a simple collection of objects, and the mapping code encapsulated by the Repository will carry out the appropriate operations behind the scenes.
Conceptually, a Repository encapsulates the set of objects persisted in a data store and the operations performed over them, providing a more object-oriented view of the persistence layer. Repository also supports the objective of achieving a clean separation and one-way dependency between the domain and data mapping layers.”
----------acting like an in-memory domain object collection.
象一個在記憶體裡的領域物件一樣運作著。倉儲 就像 記憶體管理器一樣,應該是快取吧。 可以存放物件,刪除物件。是不是可以理解:倉儲具有操作物件(CRUD)功能的快取呢?
各位老師能不能說一下 倉儲怎麼存放物件?是存到DB裡面嗎
[該貼被spring7777777於2008-12-11 21:27修改過]
[該貼被spring7777777於2008-12-11 21:30修改過]
相關文章
- <ddd--領域驅動設計學習>討論--------分層架構架構
- DDD領域驅動設計初探(3):倉儲Repository(下)
- DDD領域驅動設計初探(2):倉儲Repository(上)
- <實戰DDD(Domain-Driven Design領域驅動設計:Evans DDD)>讀後疑問AI
- 尋書---<<ejb設計模式>>設計模式
- 【吐血推薦】領域驅動設計學習輸出
- 如何學習領域驅動設計? - Vladik Khononov
- DDD領域驅動設計:領域事件事件
- 理解領域驅動設計
- MasaFramework -- 領域驅動設計Framework
- 領域驅動設計示例
- 領域驅動設計戰術模式--領域事件模式事件
- 戲說領域驅動設計(廿五)——領域事件事件
- 領域驅動設計簡介
- 實現領域驅動設計
- 領域驅動設計核心概念
- Java版<<青花瓷>>Java
- 領域驅動設計與模型驅動設計的關係模型
- 領域驅動設計戰術模式--領域服務模式
- 實現領域驅動設計 - 使用ABP框架 - 儲存庫框架
- JavaScript中的領域驅動設計JavaScript
- 淺談DDD(領域驅動設計)
- 微服務領域驅動設計 - semaphoreci微服務
- 淺談 DDD 領域驅動設計
- 前端開發-領域驅動設計前端
- 領域驅動設計中的模型模型
- DDD-領域驅動設計示例
- <b>Hibernate中文論壇開張</b> ==> http://hibernate.fankai.com/HTTPAI
- 分享我的:領域驅動設計(DDD)學習成果精簡總結
- 領域驅動設計 (DDD) 簡介 - jannikwempe
- 領域驅動設計(DDD)入門&概要
- 領域驅動設計DDD應用心得
- 領域驅動設計與敏捷開發敏捷
- 領域驅動設計整合與架構架構
- 最常見領域驅動設計錯誤
- 基於ABP落地領域驅動設計-03.倉儲和規約最佳實踐和原則
- 問題驅動設計與領域驅動設計的區別 - abdullin
- 在複雜領域中設計軟體:領域驅動設計 - levelup