I've been reading some tutorials and I could see that most of the MVC implementations
are based on:
1) a dao interface for example "IUserDao"
2) a dao impl of that interface - "mySimpleUserDaoImpl"
3) a service interface for persistance : "IUserService"
4) and a impl - "UserServiceImpl"
is this the best practice? i mean the reason i ask this question is because it seem redundant to have 30 services with getXById(), deleteX(x), createX(x) methods that are doing more or less the same.
please take into account that I'm using spring 3 and hibernate 4, and I decided i will ask this question before i start slamming my keyboard with code
thanks.