<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>posturan</author_name>
  <author_url>https://blog.hatena.ne.jp/posturan/</author_url>
  <blog_title>Oboe吹きプログラマの黙示録</blog_title>
  <blog_url>https://oboe2uran.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>mybatis</anon>
  </categories>
  <description>UUID型のタイプハンドラの必要性をあまり感じなかったので、今まで書いてなかった。 PostgreSQL なら、gen_random_uuid() 関数で生成してくれるし SELECT クエリ結果も、mybatis は、String に自動マッピングで抽出できるとなると、 あまり、java.util.UUID で扱う機会が少ないからだ。 でも、java.util.UUIDの static メソッド randomUUID() で 生成した結果をDBに書き込みたいとなるとハンドラが必要、 作ることにした。 package org.yipuran.mybatis.types; import java…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foboe2uran.hatenablog.com%2Fentry%2F2023%2F10%2F21%2F151835&quot; title=&quot;UUID のタイプハンドラ - Oboe吹きプログラマの黙示録&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>2023-10-21 15:18:35</published>
  <title>UUID のタイプハンドラ</title>
  <type>rich</type>
  <url>https://oboe2uran.hatenablog.com/entry/2023/10/21/151835</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
