<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jyukutyo</author_name>
  <author_url>https://blog.hatena.ne.jp/jyukutyo/</author_url>
  <blog_title>Fight the Future</blog_title>
  <blog_url>https://www.sakatakoichi.com/</blog_url>
  <categories>
    <anon>programming</anon>
  </categories>
  <description>MyBatis(旧iBatis)はカラム名とJavaBeansのプロパティをオートマッピングするけど、「_」がつくとマッピングできない。拡張ポイントもないので手軽には対応できないけど、次のようにすればいちおうできる。 ResultSerHandlerの実装クラスを継承した独自のクラスを作成する Configurationを継承した独自のクラスを作成する XMLConfigBuilderをコピーして新しいクラスを作成し、必要な箇所を書き換える ResultSerHandlerで、カラム名とプロパティ名を対応付けているメソッドをオーバーライドする。Configurationで、利用するResult…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.sakatakoichi.com%2Fentry%2F20100917%2F1284772800&quot; title=&quot;MyBatisでカラム名から「_」を取ったプロパティとオートマッピングする - Fight the Future&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-09-18 02:20:00</published>
  <title>MyBatisでカラム名から「_」を取ったプロパティとオートマッピングする</title>
  <type>rich</type>
  <url>https://www.sakatakoichi.com/entry/20100917/1284772800</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
