2013年11月23日土曜日

org.hibernate.NonUniqueObjectExceptionにもちょっとハマった

Hibernateで以下の例外が出る場合は、リレーションシップにあるエンティティ(クラス)のhashCode、equalsメソッドがどう実装されているか見直しましょう。

Caused by: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session:

0 件のコメント:

コメントを投稿