Filter
Exclude
Time range
-
Near
๐Ÿš€ Built a Spring Boot Auditing Project Recently, I implemented Spring Data JPA Auditing in a Todo Management application to understand how enterprise applications track data creation and modifications automatically. ๐Ÿ“Œ Project Flow A user creates a Todo by providing: โ€ข Name โ€ข Task โ€ข Description The Todo ID is generated automatically by JPA. When the application starts, Spring requests an AuditorAware implementation from the AuditingConfig class. This provider returns the current user, which is then used by the auditing framework to populate audit-related fields automatically. ๐Ÿ“Œ Auditing Features Implemented โœ” CreatedDate โ€“ Stores the date and time when the entity is first created. โœ” LastModifiedDate โ€“ Stores the latest date and time when the entity is updated. โœ” CreatedBy โ€“ Stores the author who created the entity. โœ” LastModifiedBy โ€“ Stores the user who last modified the entity. ๐Ÿ“Œ BaseEntity Design All auditing fields are placed inside a reusable BaseEntity class. The @MappedSuperclass annotation ensures that: โ€ข No separate table is created for BaseEntity. โ€ข All audit fields are inherited by child entities. โ€ข The audit columns become part of the entity that extends BaseEntity. This allowed me to keep the Todo entity clean while reusing auditing functionality across future entities. ๐Ÿ“Œ Technologies Used ๐Ÿ”น Java ๐Ÿ”น Spring Boot ๐Ÿ”น Spring Data JPA ๐Ÿ”น Hibernate ๐Ÿ”น MySQL ๐Ÿ”น Lombok ๐Ÿ”น REST APIs This project helped me understand how real-world applications maintain accountability, traceability, and change history without writing manual tracking logic. Next Update โžก Integrating Spring Security so the auditing system can capture the actual authenticated user instead of a hardcoded auditor. #Java #SpringBoot #SpringDataJPA #Hibernate #BackendDevelopment #SoftwareEngineering #RESTAPI #LearningInPublic #JavaDeveloper
1
2
45
Completed the Third Module by Coding Shuttle @sudoanuj which is based on the Relationship mapping between the tables, how JDBC and Spring Data JPA helps to map the POJO with the database. Learned Cascading and many other important concepts like pagination and projection. The homework assignment was heavily focused on the relationship mappings. The first homework assignment was related to subject, student, department, admission record and professor which is basically a college management system where the ERD diagram was provided by @sudoanuj which made things easier. The tables have different relationships with each other. Some tables have OneToOne relationship and some have ManyToMany. Let's Understand the annotations with examples: 1. OneToOne: A Student can have only one Admission record. So that's why a OneToOne relationship is established between these two tables. 2. OneToMany: A Professor can teach more than one subject. So there's a OneToMany relationship established between these two tables and vice versa for ManyToOne. 3. ManyToMany: Many students can be taught by many professors. mappedBy is used to define the non-owning (inverse) side of a bidirectional entity relationship. It is present on the inverse side of the relationship, telling JPA that the other side owns the foreign key. JsonIgnore is a Jackson library annotation used to prevent specific entity fields or relationships from being serialized into JSON. It is commonly used to hide sensitive data like passwords or to break infinite recursion loops caused by bidirectional database relationships. Heavily used in ManyToMany relationships. JoinTable with JoinColumn defines the owning side of a ManyToMany relationship in JPA. It explicitly defines the intermediate join table and the foreign key columns used to establish the relationship between two database tables. The second homework project was an Author and Book management system where we had to map authors and the books they published. There are only two tables in this project with a ManyToMany relationship between authors and books โ€” because one author can write many books and one book can have many authors. The main challenge was implementing all these APIs: Create a new book and author Retrieve a list of all books and authors Retrieve a single book or author by ID Update book and author details Delete a book or author Find books by title Find books published after a certain date Find authors by name Find all books by a specific author Some APIs required custom query methods in the Repository layer using Spring Data JPA's method naming conventions. Definitely a solid project! Learned a lot in this module. Will dive more in-depth into topics like Cascading and N 1 query optimization. #Java #SpringBoot #SpringDataJPA #BackendDevelopment #LearningInPublic #JavaDeveloper #CodingJourney
1
2
114
Derived query methods are powerful, but sometimes you need more control. Learn how to use JPQL and Native SQL queries with Spring Data JPA to build efficient, production-ready applications. Read here: blog.masteringbackend.com/maโ€ฆ #Java #SpringBoot #SpringDataJPA #Hibernate
2
4
276
Mastering Spring Data JPA from beginner to advanced with practical examples, repository patterns, entity relationships, custom queries, pagination, transactions, and performance optimization in Spring Boot applications. Read: blog.masteringbackend.com/maโ€ฆ #SpringBoot #SpringDataJPA
1
2
8
5,434
Database access in Java has come a long way ๐Ÿš€ Started with writing everything manually in JDBCโ€ฆ Then came Hibernate ORMโ€ฆ Then Spring Boot JPA changed the gameโ€ฆ And Spring Data JPA made development even faster with clean repository methods ๐Ÿ”ฅ But hereโ€™s the truth ๐Ÿ‘‡ Tools can save time, but understanding SQL, indexing, joins, and performance will always make you a stronger developer. What do you prefer in real projects? 1๏ธโƒฃ JDBC 2๏ธโƒฃ Hibernate 3๏ธโƒฃ Spring Data JPA 4๏ธโƒฃ Native SQL / jOOQ / MyBatis If you into tech background,let connect. Drop your answer in comments ๐Ÿ‘‡ #Java #SpringBoot #SpringDataJPA #Hibernate #BackendDeveloper #SoftwareEngineering #Coding #Programming #Developers #Collaboration #Networking
2
58
Day 24 of #SpringBoot ๐ŸŒฑ Containerized my database and wired up the backend! ๐Ÿณ โœ… Swapped H2 for MySQL โœ… Running DB inside Docker โœ… Refactored everything to use Spring Data JPA #Java #BackendDevelopment #SpringDataJPA #Coding
2
26
Day 97 of #100DaysOfCode (#JavaRevision) โ˜• #SpringBoot / #SpringDataJPA / #Hibernate - Understood the concept of owning side vs inverse side in entity relationships - Learned how the owning side controls the foreign key and database updates - Worked with One-to-Many / Many-to-One mappings, mappedBy, and @JoinColumn - Explored cascade operations, orphanRemoval, and why parent entities control child lifecycles #Java #Hibernate #SpringDataJPA #Backend #100DaysOfCode
3
212
Day 94 of #100DaysOfCode (#JavaRevision) โ˜• #SpringBoot / #SpringDataJPA - Understood how sorting works at the data access layer - Implemented sorting using method queries and the Sort class - Learned the core concept of pagination and why it matters for APIs - Worked with Pageable to fetch paginated and sorted results efficiently #Java #Backend #SpringBoot #SpringDataJPA #100DaysOfCode
4
190
Day 93 of #100DaysOfCode (#JavaRevision) โ˜• #SpringBoot / #SpringDataJPA Going deeper into derived query methods and method naming conventions Understanding how Spring Data generates queries from repository method names Working with custom JPQL queries using @โ€‹Query annotation Comparing JPQL vs native queries and when to use each #Java #Backend #SpringBoot #JPA #100DaysOfCode
1
4
212
Day 92 of #100DaysOfCode (#JavaRevision) โ˜• #SpringBoot / #SpringDataJPA - Went deep into Spring Data JPA fundamentals - Worked with different Repository interfaces (CrudRepository, PagingAndSortingRepository, JpaRepository) and understood how they build on each other - Covered the key features of Spring Data JPA โ€” reducing boilerplate, auto-implemented CRUD, pagination & sorting, and query abstraction - Got started with the basics of JPQL and how it operates on entities instead of tables ๐Ÿ“Œ Repository hierarchy & capabilities visualized in the reply ๐Ÿ‘‡ #Java #Spring #Backend #JPA #Hibernate #100DaysOfCode
1
5
183
Built a Blood Donor Search Portal! ๐Ÿฉธ Features: ๐Ÿ”Ž Search donors by blood group, city, district, โšก Optimized queries with Spring Data JPA ๐ŸŽจ UI with Spring MVC Thymeleaf ๐Ÿ› ๏ธ Built on Spring Boot MySQL ๐Ÿ”— Repo: PraneethPW/RUDHIRA-PORTAL #SpringBoot #Backend #SpringDataJPA
2
2
196
Do I have to learn all three (JDBC, JPA, and Hibernate) ? #Java #JDBC #JPA #Hibernate #SpringDataJPA
1
7
238
Built a clean Spring Boot Spring Data JPA example covering: ๐Ÿ“‚ Structure: Entity โ†’ Student.java Service โ†’ Interface & Implementation Repo โ†’ JpaRepository Application โ†’ Starter point ๐Ÿ’ป GitHub โ†’ lnkd.in/gm9Qiky6 #SpringBoot #SpringDataJPA #BackendDev
1
2
143
Sunday well played โ€” both on the field and in code! Started the day with some solid cricket shots and ended it with: -> JpaRepository basics -> Static & Dynamic Projections -> Custom Finder Methods -> Custom Query Methods #SpringBoot #SpringDataJPA #JavaDev #SundayCoding
1
3
79
Optional Return To avoid nulls Clean, null-safe code with Optional. #SpringDataJPA #JavaBestPractices
3
3
66
3,013
Multiple Fields Query by multiple fields? Easy! Method name = query logic. No @Query needed! #JavaDev #SpringDataJPA
10
577
Mastering Spring Data JPA Annotations All essential annotations at a glance for building robust Java backends. #java #springboot #microservices #springdata #springdatajpa
4
48
2,833