(Quick Reference)

withSession

目的
Purpose

Provides access to the underlying Hibernate Session object

使用例
Examples

Book.withSession { session ->
    session.clear()
}

詳細
Description

パラメータ:

Parameters:
  • closure - A closure which accepts a Session argument