UNIT IV
ADVANCED FRAMEWORKS
BVL_DR.KALAM COMPUTING CENTRE, MIT
10/16/2025 1
CAMPUS ANNA UNIVERSITY
UNIT IV
ADVANCED FRAMEWORKS
• MVC framework
• JPA - Hibernate
– Introduction to ORM
– JPA Hibernate – Using Annotations
– JPA - SessionFactory, Session, Transaction
– Performing CRUD Operations with Annotations
– Different ID Generation Strategies
– Hibernate with Inheritance
– Hibernate Query language
– ORM mapping
• Spring Framework
– Spring Bean Factory and application Context
– Spring Boot
– Introduction to STS (Spring Tool Suite)
– Di with STS
– MVC, AOP
BVL_DR.KALAM COMPUTING CENTRE, MIT
10/16/2025 2
CAMPUS ANNA UNIVERSITY
UNIT IV
ADVANCED FRAMEWORKS
• MVC framework
• JPA - Hibernate
– Introduction to ORM
– JPA Hibernate – Using Annotations
– JPA - SessionFactory, Session, Transaction
– Performing CRUD Operations with Annotations
– Different ID Generation Strategies
– Hibernate with Inheritance
– Hibernate Query language
– ORM mapping
• Spring Framework
– Spring Bean Factory and application Context
– Spring Boot
– Introduction to STS (Spring Tool Suite)
– Di with STS
– MVC, AOP
BVL_DR.KALAM COMPUTING CENTRE, MIT
10/16/2025 3
CAMPUS ANNA UNIVERSITY
MVC framework
• MVC stands for Model –
View – Controller.
• It’s a design pattern to
separate responsibilities in
an application.
– Model → represents data &
business logic (e.g., a
Student class, database
operations).
– View → represents the UI
(e.g., JSP page, HTML
template).
– Controller → handles user
input, processes it, and
decides which view to show.
BVL_DR.KALAM COMPUTING CENTRE, MIT
10/16/2025 4
CAMPUS ANNA UNIVERSITY
MVC framework – Cont’d
• Why do we need MVC?
– Without MVC, all logic (UI + business + database code) may sit inside
one file/class, making it hard to maintain.
– MVC keeps things organized.
• When & Why is MVC Used?
– Used in web applications where we deal with user input (forms,
requests) and need to respond with views (HTML, JSON).
– Example:
A student portal → login form (View) → Controller checks credentials
→ Model verifies DB → Controller sends result back to View.
• That separation is what makes applications easier to extend.
For example:
– If tomorrow the UI changes (say JSP → Angular), the Controller and
Model remain almost the same.
– If the DB changes (say MySQL → PostgreSQL), the Controller and
View remain the same.
BVL_DR.KALAM COMPUTING CENTRE, MIT
10/16/2025 5
CAMPUS ANNA UNIVERSITY
MVC framework – Cont’d
• In a JavaServer Faces (JSF) application, the MVC (Model-
View-Controller) architecture is implemented through
several distinct components.
– Model: The managed beans, which are Plain Old Java Objects
(POJOs), and a persistence layer (like JPA or Hibernate)
handle the business logic and application data.
– View: Facelets (.xhtml files) contain the user interface
components. They use the JSF Expression Language (EL) to
bind to and display data from the managed beans.
– Controller: The FacesServlet acts as the front controller,
processing all requests. It uses a JSF lifecycle, application
configuration (faces-config.xml), and managed beans to
handle events, process user input, and navigate to the
correct view
BVL_DR.KALAM COMPUTING CENTRE, MIT
10/16/2025 6
CAMPUS ANNA UNIVERSITY