Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.
解决方法:http://hi.baidu.com/peipeihequnqun/blog/item/68fd2184a48e9b26c65cc398.html