From 4c4d29fd2024901af50ed2a78b7b85fc36c9bcf1 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Wed, 4 Oct 2006 18:15:28 +0000 Subject: Added extra comment. --- src/main/java/com/amazon/carbonado/Trigger.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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. * *

To ensure proper nesting, all "before" events are run in the * opposite order that the trigger was registered. All "after" and -- cgit v1.2.3