Java Spring & Hibernate
Introduction
Hibernate is a powerful enabler that addresses object/relational persistence in the Java world. Hibernate offers all the advantages of developing in Java plus a comprehensive suite of capabilities for mapping object-oriented features to the relational model. This course tells you what you need to know to design and build your own Hibernate-enabled applications. You’ll learn the details of the key Hibernate capabilities and how to leverage their strengths, with a special focus on using Hibernate with the Spring framework.
The Spring framework is an application framework that provides a lightweight container that supports the creation of simple-to-complex components in a non-invasive fashion. Spring’s flexibility and transparency is congruent and supportive of incremental development and testing. The framework’s structure supports the layering of functionality such as persistence, transactions, view-oriented frameworks, and enterprise systems and capabilities. Spring’s Aspect-Oriented Programming (AOP) framework enables developers to declaratively apply common features and capabilities across data types in a transparent fashion.
Spring makes J2EE development easier. Spring simplifies commons tasks and encourages good design based on programming to interfaces. Spring makes your application easier to configure and reduces the need for many J2EE design patterns. Spring puts the OO design back into your J2EE application, and it integrates nicely with JSF.
Audience
Course Outline
Spring Framework
- What is Spring Framework
- Inversion of Control
- Dependency Injection
- Bean Factory
- Developing First Spring Application
- Built-in Bean Factories
- Application Context
- Wiring Beans
- Bean Lifecycle in Container
- Spring Events
- Introduction to AOP
- Role of AOP in Spring
- AOP Advice
- AOP Pointcuts
- Spring AOP Introductions
- ProxyFactoryBean
- Data Access ExceptionsJDBC Abstraction Layer
- Data Access Exceptions
- DAO Support
- What is O-R Mapping
- O-R Mapping support in Spring
- Hibernate Support / Mapping
- Transaction Abstraction in Spring
- Transaction Strategies
- Programmatic Transaction
- Declarative Transaction
- Web MVC Architecture
- Role of DispatcherServlet
- Controller
- Handler
- View Resolving
- Data Binding
- File Upload Support
- Drawbacks of direct JDBC
- Plain Old Java Object (POJO)
- What is O-R Mapping
- Simple Database Application
- Required JAR Files
- Hibernate configuration File
- Hibernate properties File
- Hibernate XML File
- SQL Dialects
- Id and Primary Key
- Id Generation Methods
- SessionFactory
- Session
- Transaction
- Developing CRUD Application
- Mapping Declarations
- Modeling Composition with Relationship
- Modeling Composition with Components
- One-to-One Association
- One-to-Many Association
- Many-to-Many Association
- Uni and Bidirectional Associations
- Hibernate Value Types
- Custom Types
- Persistent Objects
- Object Loading
- Executing Queries
- Iterating Results
- Scalar Results
- Bind Parameters
- Pagination
- Select clause
- From clause
- Where clause
- Aggregate functions
- Expressions
- Sorting
- Grouping
- Sub queries
- Creating Criteria
- Narrowing the Result
- Ordering the Result
- Using SQL Query
- Named SQL Query
- Using Stored Procedure for Querying
- Creating Custom SQL for CRUD
- Session and Transaction Scopes
- Database Transaction Demarcation
- Optimistic Concurrency Control
- Pessimistic Concurrency Control
- Connection Release Modes
Course Duration
3 months
Course Fee
INR 20,000.00


