title: spring data rest vs spring data jpa
body: <p>I have had a look at the following question</p>
  
  <p><a href="https://stackoverflow.com/questions/25604081/what-are-the-advantages-of-using-spring-data-rest-over-spring-data-jpa">What are the advantages of using Spring Data REST over Spring Data JPA?</a></p>
  
  <p>It doesn't quite cater to my needs.
  My DB is on MYSQL, I chose Spring-Data-JPA implementation. What are all the added advantages that REST can give me which I wont find in simple Spring-Data-JPA?
  For example if tomorrow, I decide to implement a cache b/w my business and Database module, in which case would I have to write lesser code?
  Which would be easily configurable? Which would be more flexible and how?</p>
  
  <p>Also, if I am using both REST and JPA in a new application, what design principles do I break?</p>
  
  <p>I am looking forward to the answers from an architecture perspective. Thanks in advance.</p>