Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
エンティティe1があり、新しいエンティティe2を作成します。そうです:
E2 e2 = new E2(); e2.setE1(e1); save(e2);
e2はデータベースに正しく作成されますが、e1自体は変更されていませんが、 e1のバージョン番号もインクリメントされます。それは正しい動作ですか、それとも私のequalsメソッドなどのどこかに問題がありますか?