<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takahashikzn</author_name>
  <author_url>https://blog.hatena.ne.jp/takahashikzn/</author_url>
  <blog_title>R42日記</blog_title>
  <blog_url>https://takahashikzn.root42.jp/</blog_url>
  <categories>
    <anon>EclipseLink</anon>
  </categories>
  <description>昔悩んでいたこのエラー。やっと原因がわかりました。 例えば以下のようなエンティティがあったとします。 @Entity public class Shop { @ManyToMany // fetchを指定しない場合、デフォルトはLAZYであることに注意 private Set&lt;Product&gt; products; ... } @Entity public class Product { ... } 見ての通り、ShopとProductはN:Nの関連です。 このとき、以下のようなコードを書くと上記のエラーが発生するようです。 // 新しくセットするShop.productsの値を作成 Set&lt;P…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakahashikzn.root42.jp%2Fentry%2F20100822%2F1282450334&quot; title=&quot; 続・@ManyToManyでConcurrentModificationExceptionが出る件 - R42日記&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-08-22 13:12:14</published>
  <title> 続・@ManyToManyでConcurrentModificationExceptionが出る件</title>
  <type>rich</type>
  <url>https://takahashikzn.root42.jp/entry/20100822/1282450334</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
