<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gsf_zero1</author_name>
  <author_url>https://blog.hatena.ne.jp/gsf_zero1/</author_url>
  <blog_title>いろいろ備忘録日記</blog_title>
  <blog_url>https://devlights.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>大分間があいてしまいましたが、第7回です。 今回は、1対1の関連を取得してみます。 前回、1対Nをやっていますので、実際1対1は同じ事をやるだけです。 違いは、resultMapにgroupByが付いているかいないかくらいです。 今回も、ポイントはresultMapの設定にあります。 取得SQLの結果を大元のresultMapに渡し、その中からさらに他のresultMapに渡す事で JOINの設定ができます。以下、サンプルです。 今回のサンプルでは、MemosテーブルにあらかじめMemoIdが1のデータが存在し、Authorsテーブルに あらかじめAuthorIdが1のデータが存在している事を…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdevlights.hatenablog.com%2Fentry%2F20071201%2Fp1&quot; title=&quot; iBatis.NET奮闘記-007 (1対1のデータ取得) (Mapper, ISqlMapper, QueryForObject, resultMap, resultMapping) - いろいろ備忘録日記&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>2007-12-01 00:00:00</published>
  <title> iBatis.NET奮闘記-007 (1対1のデータ取得) (Mapper, ISqlMapper, QueryForObject, resultMap, resultMapping)</title>
  <type>rich</type>
  <url>https://devlights.hatenablog.com/entry/20071201/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
