<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>edgegram</author_name>
  <author_url>https://blog.hatena.ne.jp/edgegram/</author_url>
  <blog_title>edgegram</blog_title>
  <blog_url>https://edgegram.hatenablog.jp/</blog_url>
  <categories>
    <anon>JDBC</anon>
  </categories>
  <description>idカラムを作って自動採番するような場合。 JPAでINSERTすればidが入った状態でEntityが取れるけど、JDBCの場合にどうするか。 何故にJDBCかというと、バイナリデータを放り込むのにJPAではなくJDBCを使いたいから。 PostgreSQLのbyteaカラムに手動でデータを入れる - edgegram 参考：java - PreparedStatement with Statement.RETURN_GENERATED_KEYS - Stack Overflow Statement.RETURN_GENERATED_KEYSを引数に追加すればできる。 Stetement使う(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fedgegram.hatenablog.jp%2Fentry%2F2015%2F12%2F21%2F171306&quot; title=&quot;JDBCでINSERT後のシーケンス値を取得する - edgegram&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>2015-12-21 17:13:06</published>
  <title>JDBCでINSERT後のシーケンス値を取得する</title>
  <type>rich</type>
  <url>https://edgegram.hatenablog.jp/entry/2015/12/21/171306</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
