<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kanonji</author_name>
  <author_url>https://blog.hatena.ne.jp/kanonji/</author_url>
  <blog_title>kanonji’s diary</blog_title>
  <blog_url>https://kanonji.hatenadiary.com/</blog_url>
  <categories>
    <anon>database</anon>
  </categories>
  <description>どういう場合に依存エンティティにするべきか、逆にどういう場合は独立エンティティかが分からなかったので、追加で調べてみました。 外部キーが主キーになっているなら、それは依存エンティティというのは分かるんですが、理由を知らずに結果だけ覚えても応用が利かないので。 「注文」エンティティと「出荷」エンティティは依存のリレーションシップにあります。「依存のリレーションシップ」とは、つまり「親エンティティに依存しなければ子エンティティが存在できない状態」を意味します。これを踏まえると、図2の依存のリレーションシップは出荷を行うには必ず注文が必要になるというビジネスルールを表しています。なお、依存のリレーシ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkanonji.hatenadiary.com%2Fentry%2F20100218%2F1266457991&quot; title=&quot;エンティティの依存関係について - kanonji’s diary&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>https://cdn-ak.f.st-hatena.com/images/fotolife/k/kanonji/20100218/20100218101654.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-02-18 10:53:11</published>
  <title>エンティティの依存関係について</title>
  <type>rich</type>
  <url>https://kanonji.hatenadiary.com/entry/20100218/1266457991</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
