diff options
Diffstat (limited to 'src/main/java/com/amazon/carbonado')
-rw-r--r-- | src/main/java/com/amazon/carbonado/Trigger.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/amazon/carbonado/Trigger.java b/src/main/java/com/amazon/carbonado/Trigger.java index 20b042f..01e664f 100644 --- a/src/main/java/com/amazon/carbonado/Trigger.java +++ b/src/main/java/com/amazon/carbonado/Trigger.java @@ -23,7 +23,9 @@ package com.amazon.carbonado; * persisted. By default, the methods defined in this class do
* nothing. Subclass and override trigger conditions of interest, and then
* {@link Storage#addTrigger register} it. Each overridden trigger method is
- * called in the same transaction scope as the persist operation.
+ * called in the same transaction scope as the persist operation. Trigger
+ * implementations are encouraged to override the equals method, to prevent
+ * accidental double registration.
*
* <p>To ensure proper nesting, all "before" events are run in the
* <em>opposite</em> order that the trigger was registered. All "after" and
|