4
public class Widget {
    @Ref(resource=WidgetResource.class)
    URI url;

    ...

    public URI getUrl() {
        return url;
    }

    public Wonkle getWonkle() {
        return wonkle;
    }

}

public class Wonkle {
    @Ref(resource=WonkleResource.class)
    URI url;

    public URI getUrl() {
        return url;
    }

   ...
}

The JSON representation of the the Wonkle type has a url attribute with an appropriate value. However, when the Wonkle is used as a nested attribute in the Widget type, its url attribute has a null value.

Am I doing something incorrectly, or is this this just the way the LinkFilter works?

Thanks!

cmac
  • 191
  • 2
  • 4
  • Without more information in your code, perhaps that you've omitted, how would the nested Wonkle know that it represents "the same" Wonkle that would be returned from the WonkleResource class? – William Price May 18 '13 at 23:07

0 Answers0