@Override public PersistentEntityResource toResource(Object instance) { Assert.notNull(instance, "Entity instance must not be null!"); return wrap(projector.projectExcerpt(instance), instance).build(); }
/** * Returns the full object as {@link PersistentEntityResource} using the underlying {@link Projector}. * * @param instance must not be {@literal null}. * @return */ public PersistentEntityResource toFullResource(Object instance) { Assert.notNull(instance, "Entity instance must not be null!"); return wrap(projector.project(instance), instance).build(); }
@Override public PersistentEntityResource toResource(Object instance) { Assert.notNull(instance, "Entity instance must not be null!"); return wrap(projector.projectExcerpt(instance), instance).build(); }
/** * Returns the full object as {@link PersistentEntityResource} using the underlying {@link Projector}. * * @param instance must not be {@literal null}. * @return */ public PersistentEntityResource toFullResource(Object instance) { Assert.notNull(instance, "Entity instance must not be null!"); return wrap(projector.project(instance), instance).build(); }