johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JOHNZON-40) support virtual objects
Date Sun, 15 Mar 2015 19:23:38 GMT
Romain Manni-Bucau created JOHNZON-40:
-----------------------------------------

             Summary: 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)

Mime
View raw message