<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryoasai</author_name>
  <author_url>https://blog.hatena.ne.jp/ryoasai/</author_url>
  <blog_title>達人プログラマーを目指して</blog_title>
  <blog_url>https://ryoasai.hatenadiary.org/</blog_url>
  <categories>
    <anon>JPA</anon>
    <anon>プログラミングTips</anon>
    <anon>JavaEE標準</anon>
  </categories>
  <description>JPAには@Embeddableというアノテーションがありますが、このマッピング機能をうまく活用しているチームはどれくらいあるのでしょうか？私が今まで適用してきた使い方は結局以下の2通りの使い方のいずれかに集約できると思います。 1.属性の多い巨大なテーブルに対するエンティティを入れ子に構造化されたクラスとして扱う これはちょうどCOBOLにおいて巨大なレコードをばらばらの独立項目として扱うのではなく、値の塊ごとに集団項目として一まとまりの変数としてまとめて考えるという発想に近い考え方です。たとえば、COBOLでは以下のように従業員レコードを固まりで分割して定義できます。 DATA DIVIS…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryoasai.hatenadiary.org%2Fentry%2F20101108%2F1289203980&quot; title=&quot;JPAの@Embeddableの使い道 - 達人プログラマーを目指して&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>2010-11-08 17:13:00</published>
  <title>JPAの@Embeddableの使い道</title>
  <type>rich</type>
  <url>https://ryoasai.hatenadiary.org/entry/20101108/1289203980</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
