效果图:
http://blog.csdn.net/fenixshadow/archive/2008/02/13/2090621.aspx
+-----------+ session.save +----------+ session.close +-----------+
| |------------------->| |----------------->| |
| transient | |persistent| | detached |
| |<-------------------| |<-----------------| |
+-----------+ session.delete +----------+ session.update +-----------+
^ |
| |
load/| |tx.commit
get | |
| //