0% found this document useful (0 votes)
17 views6 pages

1 MVC Framework

The document outlines advanced frameworks including the MVC framework and JPA-Hibernate, detailing concepts such as ORM, annotations, and CRUD operations. It also introduces the Spring Framework, covering topics like Spring Bean Factory, Spring Boot, and Dependency Injection with STS. The MVC framework is emphasized for its role in organizing application logic, improving maintainability and extensibility in web applications.

Uploaded by

anbarasukavya7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views6 pages

1 MVC Framework

The document outlines advanced frameworks including the MVC framework and JPA-Hibernate, detailing concepts such as ORM, annotations, and CRUD operations. It also introduces the Spring Framework, covering topics like Spring Bean Factory, Spring Boot, and Dependency Injection with STS. The MVC framework is emphasized for its role in organizing application logic, improving maintainability and extensibility in web applications.

Uploaded by

anbarasukavya7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like