withSession
Purpose
Provides access to the underlying HibernateSession
objectExamples
Book.withSession { org.hibernate.Session session -> session.clear() }
Description
Parameters:closure
- A closure the first argument to which is theSession
object