/*
  * (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());
 }
 /*
  * (non-Javadoc)
  * @see org.springframework.data.rest.core.mapping.ResourceMapping#getRel()
  */
 @Override
 public String getRel() {
   return annotation != null && StringUtils.hasText(annotation.rel())
       ? annotation.rel()
       : property.getName();
 }
Ejemplo n.º 3
0
 public static String relativePathToDomainStorageAttributeDirectory(
     String domainTypeName, Object idValue, PersistentProperty attrMeta) {
   return relativePathToDomainStorageDirectory(domainTypeName, idValue) + "/" + attrMeta.getName();
 }