Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Model hooks are methods that is executed on specific model actions (defined in xml file). Model hook method has structure:

Code Block

public void modelHookMethodName(final DataDefinition dataDefinition, final Entity entity) {

        // MODEL HOOK BODY

}

...

  • modelHookMethodName - name of model hook method
  • dataDefinition - dataDefinition od model of hook event entity
  • entity - hook event entity

...