Spring, Hibernate, Java EE in Layer 3 Architecture

I need to start with where I put these technologies in level 3 architecture: This is what I have ...

  • Presentation Level: HTML, JSP

  • application

    . layer: Java EE, Spring

  • Data Access Level: Hibernate, PostgreSQL Database

+6
spring java-ee architecture hibernate layer
source share
3 answers

Yes, I would put Hibernate at the data access level. In fact, the third level is the "Data Level", and not the level of access to the data, perhaps this confuses you. Thus, everything related to business logic is included in the application level (or business).

+1
source share

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 .

+27
source share

If you want to use Spring MVC, it will most likely live at the presentation level.

+1
source share

All Articles