This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
这是我的情况:
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();