<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nainaistar</author_name>
  <author_url>https://blog.hatena.ne.jp/nainaistar/</author_url>
  <blog_title>きり丸の技術日記</blog_title>
  <blog_url>https://nainaistar.hatenablog.com/</blog_url>
  <categories>
    <anon>設計</anon>
    <anon>技術</anon>
    <anon>Java</anon>
  </categories>
  <description>ちょっとポエム寄りのお話です。 プリミティブ型をラップした型を作成することは、対象の業務を表現できることがメリットです。たとえば、主キーのIDが文字列だった場合に、次の制約があった場合でもプリミティブ型では伝えられません。 頭文字3桁がシステム略称名 全体で10桁 例：ABC0000001 他にも本はISBN型を所持しています。ISBNは次の制約を持っていますが、プリミティブ型の場合は伝えられません。 10桁か13桁 末尾1桁がチェック用数値 型を自作すると、システムで使用している大事な概念に対して命名でき、システムで異常値が入らないような制約をかけることができて安全に開発を進められることがメ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnainaistar.hatenablog.com%2Fentry%2F2022%2F06%2F13%2F120000&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>https://cdn-ak.f.st-hatena.com/images/fotolife/n/nainaistar/20220611/20220611003158.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-06-13 12:00:00</published>
  <title>【設計論】文字列だと単純にラップした型でも便利</title>
  <type>rich</type>
  <url>https://nainaistar.hatenablog.com/entry/2022/06/13/120000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
