Code example for Timestamp

0
 
    /** 
     * Return now as a Timestamp. 
     */ 
    public Object getInsertValue(BeanProperty prop, Object bean) {
        return new Timestamp(System.currentTimeMillis());
    } 
 
    /** 
     * Return now as a Timestamp. 
     */ 
    public Object getUpdateValue(BeanProperty prop, Object bean) {
        return new Timestamp(System.currentTimeMillis());
    } 
 
    /** 
     * For dynamic table updates make sure this is included. 
     */ 
    public boolean includeInUpdate() { 
        return true; 
    }