<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>masamasah</author_name>
  <author_url>https://blog.hatena.ne.jp/masamasah/</author_url>
  <blog_title>ITと哲学と</blog_title>
  <blog_url>https://masamasa.hatenadiary.jp/</blog_url>
  <categories>
    <anon>DDD</anon>
  </categories>
  <description>リポジトリ DBに格納されているオブジェクトを取ってきてインスタンスを作るということはパッと見た感じ新規にオブジェクトを作っているように映るかもしれないが、ドメインモデルとして考えるとそれは既に存在するオブジェクトであり、新規作成ではない。 これは別の場所に格納されていたライフサイクルの途中にあるオブジェクトを、コード上から扱えるようにするために再生成するということになる。 クライアントが再生成を行う際に、DBに永続化されているオブジェクトをクエリを発行することによって取得することができる。クエリの実行をクライアントが自由にできてしまうと、例えば不完全な形でオブジェクトを扱おうとしたり、集約の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmasamasa.hatenadiary.jp%2Fentry%2F2015%2F11%2F18%2F214320&quot; title=&quot;エリックエヴァンスのドメイン駆動設計を読んでいる(第2部 第6章-3) - ITと哲学と&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-11-18 21:43:20</published>
  <title>エリックエヴァンスのドメイン駆動設計を読んでいる(第2部 第6章-3)</title>
  <type>rich</type>
  <url>https://masamasa.hatenadiary.jp/entry/2015/11/18/214320</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
