Affects Version/s: 1.3.7
Fix Version/s: None
Environment:Linux kernel 2.6.32-33 x86_64
java version 1.6.0_20
OpenJDK Runtime Environment (IcedTea6 1.9.9) (6b20-1.9.9-0ubuntu1~10.04.2)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
It's minor thing however beforeValidate persistence event is inconsistent because of two things:
- It won't be triggered if declared as a closure though other persistence events trigger as closures.
beforeValidate will be triggered only if declared as a method.
- beforeValidate is not on the array returned by the grails.persistence.Event.getAllEvents(). Returned array looks as follows:
[onLoad, onSave, beforeLoad, beforeInsert, beforeUpdate, beforeDelete, afterLoad, afterInsert, afterUpdate, afterDelete]