The service layer
Just like with the DAO layer, each implementation type has its own implementation of service classes. But all of the implementations have both org.packt.academic.student.portal.service
and
org.packt.academic.student.portal.service.impl
packages. The purpose of the business layer is to implement business logic with the use of the DAO objects.
Implementation A – using the Spring JDBC plugin
Given the LoginService
interface of the SMP as follows:
public interface LoginService { public boolean isAdminUser(Login login); public boolean isStudentUser(Login login); public boolean isFacultyUser(Login login); }
The implementation of this interface is just a typical Transactional
class. A @Transactional
class starts with a transaction on ...
Get Spring MVC Blueprints now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.