You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Reinhard Sandtner (JIRA)" <ji...@apache.org> on 2016/07/21 17:05:21 UTC
[jira] [Closed] (JOHNZON-68) @JsonbTransient is not working
[ https://issues.apache.org/jira/browse/JOHNZON-68?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reinhard Sandtner closed JOHNZON-68.
------------------------------------
> @JsonbTransient is not working
> ------------------------------
>
> Key: JOHNZON-68
> URL: https://issues.apache.org/jira/browse/JOHNZON-68
> Project: Johnzon
> Issue Type: Bug
> Affects Versions: 0.9.3-incubating
> Reporter: Sebastian Daschner
> Assignee: Romain Manni-Bucau
> Fix For: 0.9.4
>
>
> When annotating a field with {{@JsonbTransient}} that field is still included in the JSON.
> Example:
> {code}
> public class Book {
> @JsonbTransient
> private long id;
> @JsonbProperty("_name")
> private String name;
> // getters & setters
> }
> {code}
> The output of that example is:
> {code}
> {"_name": "test", "id":123}
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)