0
這裏是我的情況:會session.clear()transaction.commit()之前的所有持久對象?
session.beginTransaction();
Note note=new Note();
note.setName("hello");
session.save(note);
session.flush();
session.clear();----will it clear the note object from the session?
transaction.commit();
將對象保存在數據庫中?
我認爲應該。但不確定。 – 2013-04-24 17:24:39