title: Writing generic spring jpa repository for all entities
body: <p>I am working on Spring Boot application.</p>
  
  <p>We have Service Layer,Rest Controller and Dao as repository.</p>
  
  <p>I have 20 to 30 tables in my database and I dont want to create repository for each entity and extends that to CrudRepository.</p>
  
  <p>ex : User is an Entity, to perform persistance operations on User, I have to create UserRepository which extends CrudRepository.</p>
  
  <p>Same with Department, Company etc...</p>
  
  <p>What i want to do is, I will write a BaseRepository which gonna extend CrudRepository, base repository should accept all entities and do persistance operations.</p>
  
  <p>Is there a way to that ??</p>