<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mamepika</author_name>
  <author_url>https://blog.hatena.ne.jp/mamepika/</author_url>
  <blog_title>まめログ</blog_title>
  <blog_url>https://mamelog.hatenablog.jp/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>設計</anon>
  </categories>
  <description>以前のプロジェクトで、ドメインモデル貧血症なプログラムに悩まされたので、学んだことを書いてみます。 ドメインモデル貧血症とは オブジェクト指向におけるアンチパターン。 振る舞いとデータが分かれてしまっており、手続型の設計・実装になってしまう状態。詳しくは以下のURLで。 Martin Fowler's Bliki in Japanese - ドメインモデル貧血症自分なりの理解では、ドメインモデル=エンティティクラスと思ってます。試しに以下のような従業員クラスでドメインモデル貧血症を考えてみたいと思います。 /** * 従業員クラス */ public class Employee { priv…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmamelog.hatenablog.jp%2Fentry%2F2015%2F03%2F20%2F014302&quot; title=&quot;ドメインモデル貧血症の処方箋 - まめログ&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-03-20 01:43:02</published>
  <title>ドメインモデル貧血症の処方箋</title>
  <type>rich</type>
  <url>https://mamelog.hatenablog.jp/entry/2015/03/20/014302</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
