title: Spring : @Repository annotation for DAO
body: <p>I'm writing a RESTFul application with Spring 4.X.</p>
  
  <p>In my DAO that calls a remote web service, I put <code>@Service</code> annotation.
  But, in my recent researches I found the <code>@Repository</code> annotation that, <a href="http://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/stereotype/Repository.html" rel="nofollow noreferrer">according to Spring</a>, is suitable for DAOs : </p>
  
  <blockquote>
    <p>Teams implementing traditional J2EE patterns such as "Data Access
    Object" may also apply this stereotype to DAO classes, though care
    should be taken to understand the distinction between Data Access
    Object and DDD-style repositories before doing so. This annotation is
    a general-purpose stereotype and individual teams may narrow their
    semantics and use as appropriate.</p>
  </blockquote>
  
  <p>My question is: </p>
  
  <p>Is the Spring documentation referring to the DAO that persists data or DAO like mine that can call remote services? Which, in my case, is the most suitable annotation?</p>
  
  <p>Regards</p>