autoTimestamp

Purpose

Disables auto timestamping when set to false

Examples

class Book {
…
static mapping = {
autoTimestamp false
}
}

Description

Usage: autoTimestamp(boolean)

By default when you have properties called dateCreated and/or lastUpdated in a domain class, Grails automatically maintains their state in the database. You can disable this by setting autoTimestamp to false:

Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically.
Sponsored by SpringSource