title: spring mvc generic controllers and services
body: <p>I am developing  a small RESTful application using Spring MVC and I want to implement the generic CRUD in generic controllers, services and maybe entities. I have an entity <code>Person</code> and 2 entities which inherit the fields from this entity (e.g. <code>Person1</code> and <code>Person2</code>).</p>
  
  <p>What would be the best way to do it?</p>
  
  <p>I saw an example where all controllers were final. Is it a bad practice to have generic controllers? What about services? How do I make a generic entity?</p>