refresh

Purpose

Refreshes a domain classes state from the database

Examples

def b = Book.get(1)
b.refresh()

Description

Equivalent to the Hibernate refresh method.

Re-read the state of the given instance from the underlying database. It is inadvisable to use this to implement long-running sessions that span many business tasks. This method is, however, useful in certain special circumstances. For example