title: Generic Repository in Spring JPA
body: <p>We are working on a Restful project with lots of DB tables. Though the operations on the tables are almost same and mainly INSERT/UPDATE/DELETE/FETCH.</p>
  
  <p>my questions is:<br>
  will we have to create a repository (extending JpaRepository) for every entity (Domain class) we create or, there is an option of creating a GenericRepository that can handle all the above-mentioned functionalities for all the entities? 
  i.e a single GenericRepository for all.</p>
  
  <p>if so, could you share an example?</p>