#7 - Added @JsonIgnore to ResourceSupport.getId().

Added integration tests for the JSON marshaling.
This commit is contained in:
Oliver Gierke
2012-08-23 23:56:25 +02:00
parent f5f86dcbbc
commit 7646e11a26
5 changed files with 143 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.codehaus.jackson.annotate.JsonProperty;
import org.springframework.util.Assert;
@@ -42,6 +43,7 @@ public class ResourceSupport implements Identifiable<Link> {
/**
* Returns the {@link Link} with a rel of {@link Link#REL_SELF}.
*/
@JsonIgnore
public Link getId() {
return getLink(Link.REL_SELF);
}