Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 5 Current »

Overview

Event fired before entity is saved (created or updated).

Common Attributes

name

type

required

default value

description

class

string

yes

none

Name of the class defining hook.

method

string

yes

none

Name of the method defining hook.

Example

<onSave class="com.sample.SampleHook" method="updateModifiedAt" />

Hook method signature

public void hookName(final DataDefinition dataDefinition, final Entity entity) {
    // ...
} 
  • No labels