Skip to content

A collection of projects and examples focused on mastering Spring Persistence, including JPA, Hibernate, and Spring Data, to effectively manage database operations and interactions.

Notifications You must be signed in to change notification settings

HauHH1910/SpringPersistence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Persistence

This project is for learning Spring Data JPA and Hibernate

  • In the Spring ecosystem, Spring Data JPA and Hibernate are two popular and powerful technologies that help manage data and interact with databases efficiently.

  • Learning and using these technologies brings many benefits to Java programmers, especially in enterprise application development.

Why Learn Spring Data JPA and Hibernate?

  1. Simplify your work with databases: Spring Data JPA provides a powerful abstraction layer that makes it easy to perform CRUD (Create, Read, Update, Delete) operations without writing a lot of SQL manually. Hibernate, with its ORM (Object Relational Mapping) capabilities, helps map Java objects to database tables automatically.
  2. Automating complex operations: With Hibernate and Spring Data JPA, complex query operations can be automated and optimized, thanks to annotations and an object-oriented approach. This saves time and reduces the risk of errors that arise from writing SQL statements manually.
  3. Highly scalable: Both Hibernate and Spring Data JPA support easy integration with various database management systems, from SQL databases (such as MySQL, PostgreSQL) to NoSQL (such as MongoDB). This makes it easy for your application to scale as requirements change.
  4. Strong transaction management: Spring Data JPA combined with Spring Transaction Management helps manage data transactions safely and efficiently, ensuring data integrity even in cases of errors.
  5. Easy integration with other Spring components: Since Spring Data JPA is part of the Spring ecosystem, it integrates very well with other components such as Spring Boot, Spring Security and Spring MVC, making it easy to develop comprehensive applications.

How to use this GitHub repository?

  1. Git clone this repository: https://github.com/HauHH1910/SpringPersistence.git
  2. Switch branch for learning Spring Data JPA

Index

  1. Basic Mappings:
  2. Advanced Mappings:
  3. Hibernate Specific Queries and Mappings:
    • ...
  4. Java 8:
    • ...
  5. Logging:
    • ...
  6. JPQL:
    • ...
  7. Native SQL Queries:
    • ...
  8. Create queries programmatically with the Criteria API:
    • ...
  9. Stored Procedures
    • ...
  10. Caching
  • ...

About

A collection of projects and examples focused on mastering Spring Persistence, including JPA, Hibernate, and Spring Data, to effectively manage database operations and interactions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages