Cem Dırman·3d agoYour @EntityGraph Paginates in MemoryYou had an N+1 on a list screen, so you put an @EntityGraph on the repository method to fetch the collection in one query. The tests are…
Cem Dırman·Nov 18Your Kotlin data class Is a Broken JPA EntityYou ported an entity to Kotlin and reached for data class, because that is what Kotlin’s data holders are. equals, hashCode, toString and…
Wandana Maddumage·Nov 18Hibernate From Scratch: Understanding JPA, Entities, Repositories & Spring BootA beginner-friendly guide to understanding how Java applications communicate with databases using Hibernate and Spring Data JPA.
Sambhav Mahajan·Nov 16Correct way to configure HikariCPThere are many reasons your Spring Boot application is slow, one such reason is improper pooling. When we run a SQL query using Spring Data…
Sampath Thennakoon·Nov 13The Hidden Cost of @Transactional Over Network Calls & High-Performance Data AccessHardening production · Spring Boot with Oracle — Article 2
Md Jahid Hasan·Nov 13Your Pagination Is Fast on Page 1 and Dead on Page 10,000Part 4 of Passed Review, Failed in Prod: the Spring Boot bugs nobody catches until production does.
Cem Dırman·Nov 12Your Spring Data JPA Projection Still Selects Every ColumnYou added an interface projection to a repository because a screen needs two fields out of a thirty-column entity, and you wanted to stop…
Manikandan Valasudurai·Nov 11How to Implement Search, Pagination, and Sorting in Spring BootIf you’ve ever built a REST API that returns a list of items — like products in an e-commerce app — you know that returning the entire…
Cem Dırman·Nov 9Hibernate Has a @SoftDelete Annotation Now — Stop Hand-Rolling Your deleted FlagAlmost every production schema has a table where rows are never really deleted. A DELETE would break a foreign key, lose an audit trail, or…
InSpring Boot WorldbyThe Turtle Code·Nov 9Top 20 JUnit Interview Questions and Answers for Java DevelopersA Complete Guide to JUnit 5, Unit Testing, Assertions, Mockito, Parameterized Tests, Exception Testing, and Test-Driven DevelopmentA response icon1A response icon1