- ORM tools are used To interact with database.
- Some examples of ORM tools are
- Top link
- Hibernate
- iBATIS
- Advantages
- Less coding is required
- Easy to test
- Better exception handling
- Integrated transaction management.
- We will use hibernate as an example here.
- HibernateTemplate class is used to interact hibernate with spring.
- Spring uses this class to perform operations on database.
- We need to create entity classes which act as wrapper classes of our database tables.
- For example, a class called product DAO will act as a wrapper for product table.
- A class student DAO will act as a wrapper for student table.
- These entity classes depend on hibernateTemplate class object i.e. we need to inject hibernateTemplate Object in our entity class.
- Hibernate template then depends on SessionFactory interface which needs to be injected in HibernateTemplate.
- SessionFactory Is an interface whose implementation class LocalSessionFactoryBean is injected in HibernateTemplate.
- LocalSessionFactoryBean requires following properties.
- DataSource which provides Database Properties
- URL
- username
- Password
- Hibernate properties
- Dialect
- Show SQL
- Format, SQL
- Annotated classes i.e. our entity classes.
- Annotations
- Controllers
- Components
- Dependencies
- Documenting Java Code
- Entities
- Hibernate
- HTTPS Security
- Spring Core
- Maven
- Spring MVC
- Microservices
- Packages
- Project Configuration
- REST Templates
- Spring Boot
- AOP
- Spring DI
- Spring IOC
- Spring Data
- Tag Library
- View Resolvers
- Validations,Errors & Exceptions
- Activiti Framework
- Deploy spring boot Microservices in Fargate
- Spring Security
- Password encryption using Jasypt
- Flyway DB Migration Script
- Session in Spring Boot
- Spring Expression Language
- Spring JDBC
- Spring ORM
- Testing Spring Boot
- Correlation ID
- Logging
- ELK Stack
- EFK Stack
- Swagger
- Rabbit MQ
- Circuit Breaker Pattern
- Connection Pooling
- Spring Batch
- Zipkins
- Kafka
- Spring Boot Actuator
- Spring Cloud
- Caching
- Gateway
- Service Discovery
Spring ORM
Subscribe to:
Posts (Atom)
Spring Boot
What is circular/cyclic dependency in spring boot? When two services are interdependent on each other, that is to start one service, we requ...
-
What is JPA? JPA Is also called as Java persistence API It is a standard form oracle to map object to database relations. Provides specific...
-
Technology's / frameworks in Spring Spring core Spring MVC Spring boot Spring data Hibernate
-
Q What is the minimal web version required to use JSTL? And : 2.4 For example following tag from web.xml uses web 4.0 <web-app xmlns:xs...
No comments:
Post a Comment