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 lastUpdate in a domain class, Grails will automatically maintain the state of these in the database. If you don't want this to happen then you can set autoTimestamp to false:

static mapping = {
	autoTimestamp false
}