withSession
目的 Purpose
Provides access to the underlying Hibernate Session
object使用例 Examples
Book.withSession { session -> session.clear() }
詳細 Description
パラメータ: Parameters:
closure
- A closure which accepts aSession
argument