Hi,
You can't access to the old record, but you can access to the dirty fields
and the original values:

for( String field : document.getDirtyFields() ) {
  Object originalValue = document.getOriginalValue( field );
  ...
}

Lvc@



On 14 April 2014 02:23, Curtis Ruck <[email protected]> wrote:

> Inside a hook, if implementing an onRecordBeforeUpdate, is it possible to
> access the old document along with the new document?  (I.e. Trigger style)
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OrientDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to