I have a class called BorderPoint with about 5 fields (including an id field
and two ManyToOne hibernate fields).

When I return the JSON, there is a large collection of BorderPoints (often
over 1000). I'd like to exclude everything but two float fields from the
JSON serialization, if only to make the returned JSON a bit smaller.

I also need to do it via annotations.

So, assuming the BorderPoint class has the following code snippet, how do I
exclude this field?

    private int id;

    public int getId() {}

    public void setIt(int id) {}

Thanks,
Jason

Reply via email to