处理hibernate的问题

No hibernate Session bound to thread
Merge pull request #3 from coolchenyi/master

pull the change