You mix Tier and Layer, which makes things pretty confusing, especially for you! If you have a question about layers, ask a question about layers.
Anyway, let me try to clarify ...
In a three-tier architecture, layers consist of:
- Client level (or presentation level)
- Business level (or middle level or logic level or application level, etc.),
- Corporate Information Systems (EIS) Level (or data layer).
And here are the typical layers of a layered application:
- Presentation Level : Servlet / JSP
- Service Level : Spring Services + Spring Transactions or EJB Beans Session
- Domain Level : POJO
- Data Access Level : Hibernate / JPA
- Physical layer : database, LDAP, file system, etc.
Hibernate will be part of the data access layer (but PostgreSQL is part of the physical layer ).
Presentation , Service , Domain , Data Access Levels correspond to Business Level . The physical layer is displayed in the Data Layer .
Pascal thivent
source share