title: How do I get Spring's Data Rest Repository to retrieve data by its name instead of its id
body: <p>I am using Spring Data's Rest Repositories from spring-boot-starter-data-rest, with Couchbase being used as the underlining DBMS. </p>
  
  <p>My Pojo for the object is setup as so.</p>
  
  <pre><code>@Document
  public class Item{
  
  @Id @GeneratedValue(strategy = UNIQUE)
  private String id;
  
  @NotNull
  private String name;
  
  //other items and getters and setters here
  }
  </code></pre>
  
  <p>And say the Item has an id of "xxx-xxx-xxx-xxx" and name of "testItem".
  Problem is, that when I want to access the item, I need to be accessible by <code>/items/testItem</code>, but instead it is accessible by <code>/items/xxx-xxx-xxx-xxx</code>.</p>
  
  <p>How do I get use its name instead of its generated id, to get the data.</p>