withSession
Purpose
Provides access to the underlying HibernateSession objectExamples
Book.withSession { session ->
    session.clear()
}Description
Parameters:- closure- A closure which accepts a- Sessionargument
| 
                (Quick Reference)
                 withSessionPurposeProvides access to the underlying HibernateSessionobjectExamplesBook.withSession { session ->
    session.clear()
}DescriptionParameters:
 | Command LineConstraintsControllersDatabase MappingDomain ClassesPlug-insServicesServlet APITag LibrariesTags | 
