package uk.ac.ox.ndm.grails.utils.domain.awareness

/**
 * @since 09/10/2015
 */
trait CreatedAndUpdatedAware {
    Date dateCreated
    Date lastUpdated

    Date getDateCreated() {
        dateCreated ?: new Date()
    }

    Date getLastUpdated() {
        lastUpdated ?: new Date()
    }
}
package uk.ac.ox.ndm.grails.utils.domain.awareness

/**
 * @since 09/10/2015
 */
trait CreatedAndUpdatedAware {
    Date dateCreated
    Date lastUpdated
}
Revert "Fix the autotimestamp issue which is failing"
Revert "Fix the autotimestamp issue which is failing"

This reverts commit 129f123c77a302959669696b039f73d2d857dd15.