<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bouzuya</author_name>
  <author_url>https://blog.hatena.ne.jp/bouzuya/</author_url>
  <blog_title>bouzuya.hatenablog.com</blog_title>
  <blog_url>https://bouzuya.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>DDD の戦術的パターンの Repository で create / delete / update を追加すべきでない理由についてチームメンバーと話した。それを簡素化したものをここにも書いておく。 ぼくは Repository の更新処理は save か store の一方に絞るようにしている。 このメソッドは第一引数に楽観排他制御用の version を optional で取り、指定があれば新規作成、なければ更新をする。つまり repository.store(None, &amp;aggregate) で create 、 repository.store(Some(before.versi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbouzuya.hatenablog.com%2Fentry%2F2024%2F05%2F23%2F224139&quot; title=&quot;DDD の Repository に create / delete / update を追加すべきでない理由 - bouzuya.hatenablog.com&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>2024-05-23 22:41:39</published>
  <title>DDD の Repository に create / delete / update を追加すべきでない理由</title>
  <type>rich</type>
  <url>https://bouzuya.hatenablog.com/entry/2024/05/23/224139</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
