<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>KeithYokoma</author_name>
  <author_url>https://blog.hatena.ne.jp/KeithYokoma/</author_url>
  <blog_title>Infinito Nirone 7</blog_title>
  <blog_url>https://blog.keithyokoma.dev/</blog_url>
  <categories>
  </categories>
  <description>次のような Entity を例に @Insert, @Update, @Upsert の動きを見てみます。 @Entity( tableName = &quot;sample_table&quot;, indices = [Index(value = [&quot;unique_id&quot;], unique = true)] ) data class SampleEntity( @PrimaryKey @ColumnInfo(name = &quot;id&quot;) val id: String, @ColumnInfo(name = &quot;name&quot;) val name: String, @ColumnInfo(name = &quot;age&quot;) va…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.keithyokoma.dev%2Fentry%2F2026%2F06%2F25%2F145008&quot; title=&quot;Unique Index があるときの @Insert(onConflict = OnConflictStrategy.REPLACE), @Update, @Upsert - Infinito Nirone 7&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>2026-06-25 14:50:08</published>
  <title>Unique Index があるときの @Insert(onConflict = OnConflictStrategy.REPLACE), @Update, @Upsert</title>
  <type>rich</type>
  <url>https://blog.keithyokoma.dev/entry/2026/06/25/145008</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
