title: Best way to develop service layer in java
body: <p>I wants to develop service layer for my application using java. At the same time the service layer can also be exposed to webservice also.</p>
  
  <p>My idea is to create one Generic Abstract Class for database operations , and all other service classes extend that abstract class and do the DB operation through that abstract class methods.</p>
  
  <p>Is this a good idea to do it?
  Please help me</p>