public class PersistentEntityResource<T>
extends org.springframework.hateoas.Resource<T>
Resource subclass that holds a reference to the entity's PersistentEntity metadata.| Constructor and Description |
|---|
PersistentEntityResource(PersistentEntity<?,?> entity,
T content,
org.springframework.hateoas.Link... links) |
| Modifier and Type | Method and Description |
|---|---|
PersistentEntity<?,? extends PersistentProperty<?>> |
getPersistentEntity() |
static <T> PersistentEntityResource<T> |
wrap(PersistentEntity<?,?> entity,
T obj,
org.springframework.hateoas.Link selfLink) |
equals, getContent, hashCode, toStringpublic PersistentEntityResource(PersistentEntity<?,?> entity, T content, org.springframework.hateoas.Link... links)
public static <T> PersistentEntityResource<T> wrap(PersistentEntity<?,?> entity, T obj, org.springframework.hateoas.Link selfLink)
public PersistentEntity<?,? extends PersistentProperty<?>> getPersistentEntity()
Copyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.