From 7ac92c3956196faafc8e613b62b7278334137928 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Sun, 25 May 2008 01:18:02 +0000 Subject: Added comment regarding independent nullable properties. --- src/main/java/com/amazon/carbonado/Nullable.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/java') diff --git a/src/main/java/com/amazon/carbonado/Nullable.java b/src/main/java/com/amazon/carbonado/Nullable.java index 4ce63ec..54932e0 100644 --- a/src/main/java/com/amazon/carbonado/Nullable.java +++ b/src/main/java/com/amazon/carbonado/Nullable.java @@ -36,6 +36,13 @@ import java.lang.annotation.*; * } * * + *

If the repository does not allow a property to be declared as nullable + * because the underlying schema differs, it can be also annotated as {@link + * Independent}. This makes it easier for a common set of Storables to interact + * with schemas which are slightly different. Attempting to persist null into a + * property for which null is not allowed will likely result in a constraint + * exception. + * * @author Brian S O'Neill */ @Documented -- cgit v1.2.3