テーブルを持つアプリケーションがあり、テーブル内のアイテムをクリックすると、テキストフィールドのグループにそのデータ (FieldGroup) が入力され、変更を保存するオプションがあります。ユーザーが私のpostgresデータベースに加えた変更。このアプリケーションには vaadin と hibernate を使用しています。これまで私はやろうとしました
editorField.commit() // after the user clicks the save button
私が試してみました
editorField.commit()
hbsession.persist(editorField) //hbsession is the name of my Session
そして私も試しました
editorField.commit();
hbsession.save(editorField);
最後の2つは私に次のエラーを与えます
Caused by: org.hibernate.SessionException: Session is closed!