Add createDate y lastUpdate a BaseEntity
Add createDate y lastUpdate a BaseEntity

package ar.com.bamboo.framework.domains

import groovy.transform.CompileStatic

/**
 * Created by orko on 05/08/14.
 */
@CompileStatic
abstract class BaseEntity {

    boolean enabled
    Date dateCreated
    Date lastUpdated


    void beforeInsert() {
        this.enabled = true
        this.executeMoreBeforeInsert()
    }

    abstract  protected void  executeMoreBeforeInsert();
}

package ar.com.bamboo.framework.domains

import groovy.transform.CompileStatic

/**
 * Created by orko on 05/08/14.
 */
@CompileStatic
abstract class BaseEntity {

    boolean enabled


    void beforeInsert() {
        this.enabled = true
        this.executeMoreBeforeInsert()
    }

    abstract  protected void  executeMoreBeforeInsert();
}
