johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Struberg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JOHNZON-143) control deduplicateObjects per Annotation
Date Thu, 02 Nov 2017 14:20:01 GMT

    [ https://issues.apache.org/jira/browse/JOHNZON-143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16235803#comment-16235803
] 

Mark Struberg commented on JOHNZON-143:
---------------------------------------

The current decision tree is 
1.) Is there an explicit configuration via MapperBuilder or JsonbConfig? then use that
2.) Otherwise check whether the root object has a @JohnzonDeduplicateObjects annotation and
use that
3.) Otherwise -> false, do not deduplicate.

> control deduplicateObjects per Annotation
> -----------------------------------------
>
>                 Key: JOHNZON-143
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-143
>             Project: Johnzon
>          Issue Type: Bug
>          Components: JSON-B, Mapper
>    Affects Versions: 1.1.4
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 1.1.5
>
>
> See JOHNZON-135 for info on the basic deduplicateObjects feature.
> Currently this can only be configured via JsonB or Mapper. 
> But in the JAX-RS case this is well hidden inside the framework.
> In this case it would be nice to have an annotation like @JohnzonDeduplicateObjects to
override the basic 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message