This is an automated email from the git hooks/post-receive script. tjaalton pushed a commit to branch master in repository jackson-annotations.
commit c1674bb5fc3a551dec8cfbcb8dd6e9d37aedb3c3 Author: Tatu Saloranta <tsalora...@gmail.com> Date: Thu Aug 2 18:02:33 2012 -0700 Add property to @JsonIdentityInfo --- .../com/fasterxml/jackson/annotation/JsonIdentityInfo.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/java/com/fasterxml/jackson/annotation/JsonIdentityInfo.java b/src/main/java/com/fasterxml/jackson/annotation/JsonIdentityInfo.java index 9ccde66..f834fa2 100644 --- a/src/main/java/com/fasterxml/jackson/annotation/JsonIdentityInfo.java +++ b/src/main/java/com/fasterxml/jackson/annotation/JsonIdentityInfo.java @@ -72,4 +72,17 @@ public @interface JsonIdentityInfo * limited scope) */ public Class<?> scope() default Object.class; + + /** + * Marker to indicate whether the first reference to an identifiable + * POJO is to be serialized as POJO (false), or as id (true). + * All other references will be serialized using id. + *<p> + * Note that if value of 'true' is used, deserialization will require + * additional contextual information; and usually custom handler + * is required, and automatic handling may not be possible. + * + * @since 2.1 + */ + public boolean firstAsId() default false; } -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jackson-annotations.git _______________________________________________ pkg-java-commits mailing list pkg-java-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits