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.
DataMapper パターンを実装する場合、DataMapper パッケージに実装するクラス モデルは、ドメイン モデルとデータ モデルのどちらに似ているべきでしょうか?
データマッパーの要点は、マッピングを透過的にすることです。したがって、クラスはオブジェクト モデルの条件に基づいて構築する必要があります。ストレージ(データベースであろうとなかろうと)との間でのマッピングの詳細は、マッパーにあります。