/* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#getPath() */ @Override public Path getPath() { String path = annotation == null ? null : annotation.path().trim(); path = StringUtils.hasText(path) ? path : getDefaultPathFor(type); return new Path(path); }
/* * (non-Javadoc) * @see org.springframework.data.rest.core.mapping.ResourceMapping#getPath() */ @Override public Path getPath() { return annotation != null && StringUtils.hasText(annotation.path()) ? new Path(annotation.path()) : new Path(property.getName()); }