[ 
https://issues.apache.org/jira/browse/JOHNZON-40?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hendrik Saly closed JOHNZON-40.
-------------------------------

fixed with 0.7-incubating

> support virtual objects
> -----------------------
>
>                 Key: JOHNZON-40
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-40
>             Project: Johnzon
>          Issue Type: New Feature
>            Reporter: Romain Manni-Bucau
>             Fix For: 0.7-incubating
>
>
> {code}
> public static class FakeNestedObject {
>         protected int a;
>         protected int b;
>         protected String[] c;
>     }
>     @JohnzonVirtualObjects({
>             @JohnzonVirtualObject(
>                     path = "nested",
>                     fields = @JohnzonVirtualObject.Field("b")
>             ),
>             @JohnzonVirtualObject(
>                     path = { "nested", "sub" },
>                     fields = {
>                             @JohnzonVirtualObject.Field("a"), 
> @JohnzonVirtualObject.Field("c")
>                     }
>             )
>     })
>     public static class ChildOfFakedObject extends FakeNestedObject {
>         protected List<String> children;
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to