http://my.oschina.net/zhaoqian/blog/133500

http://www.thoughts-on-java.org/2013/10/criteria-updatedelete-easy-way-to.html