we had the same problem and solved it with grails 2.2.1 (and not grails 2.0) as follows:
created an abstract superclass in src / groovy:
abstract class Auditable { Date dateCreated Date lastUpdated static constraints = { dateCreated(display:false) lastUpdated(display:false) } }
created a specific class "Parcel" under grails-app / domain:
class Parcel extends Auditable { ... }
To solve this type of mapping, you should use Grails 2.1 or the latest version of Grails 2.2.3 instead of 2.0.x.
source share