<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shin</author_name>
  <author_url>https://blog.hatena.ne.jp/shin/</author_url>
  <blog_title>しんさんの出張所 はてなブログ編</blog_title>
  <blog_url>https://shinsan.hatenablog.jp/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>JPA1.0では楽観的ロックだけ仕様が定義されていた。実際は各プロバイダが独自にヒント等で悲観的ロックを用意していたのだが、それもやっと定義されたために安心して使うことが可能だ。 楽観的ロックはバージョン番号を用意し、トランザクションの開始直前に取得した番号を元に更新にしくというもの。もしそれが存在しない場合、すでに更新されたものとみなし、トランザクションを最初からリトライさせる。たまに楽観的ロックのようにバージョン番号を利用した値を画面表示時にあらかじめ持っておくといった、アプリケーションでのロックをかけてるところも多いけど、それは楽観的ロックではなく、そういう仕様のアプリケーション。あくま…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinsan.hatenablog.jp%2Fentry%2F20091110%2Fp1&quot; title=&quot;JPA 2.0の新機能 悲観的ロックを試す - しんさんの出張所 はてなブログ編&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>2009-11-10 00:00:01</published>
  <title>JPA 2.0の新機能 悲観的ロックを試す</title>
  <type>rich</type>
  <url>https://shinsan.hatenablog.jp/entry/20091110/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
