I have a query in Spring MVC I have 4 DAO(data access object) classes for DB related methods 3 of them are child classes and 4th one is parent of all. Say A,B,C,D are 4 clas