MOST RECENT
Hibernate – Associations are not loaded
If you have simple associations like this: But when you load a class entity and the students is an empty set and you are sure there are records in the students table […]
Database / Java / MySQL / Spring Boot
Hibernate Error – Encountered problem trying to hydrate identifier for entity
This is the stack trace for this error: You may get this error if the data type defined on the database table is different from the one defined in Hibernate/Java code. To […]
Working with Hibernate in a multi-threaded application
Some of my learnings while working with Hibernate in a multi-threaded Spring Boot application. Multiple sessions When you start an @Async method, it runs in its own thread managed by Spring. This […]
Designing REST APIs
Response: Returning errors When the API has to communicate a full error or a partial error back to the client, it is better to have a typed structure rather than a plain […]
Fixing slow Bcrypt and BasicAuthenticationFilter.doFilter
I recently investigated and fixed a performance issue with user authentication in our Spring Boot based API service. Our users started complaining about random 504s from our service. Looking at our thread […]
Vagrant Remote Debugging – Xdebug 3 & IntelliJ or PHPStorm
Debugging is one of the most efficient ways to investigate an unexpected behaviour. This post details how to setup a debugger for a PHP application running in a vagrant machine via your […]
Jenkinsfile – Cheat sheet, Examples & References
All of these examples were tested with the ‘Multibranch Pipeline’ type jobs. This may not work with other types of jobs in Jenkins. Validate Jenkinsfile for syntax Navigate to the directory which […]
How to mock Clock in DTO classes?
If you need to freeze time for a Spring Boot integration test, the easiest option is to define a custom bean for Clock object for test profile. Eg This only works if […]
Hide Links object with SpringDoc & Swagger 3
We started generating Swagger 3 documentation (OpenAPI 3.0) for our API service using SpringDoc. We are also using Spring Hateoas to include links within the response for easy navigation. The generated schema […]
React / TypeScript / Web Development
How to use Storybooks with React?
There are plenty of tools in react ecosystem which makes the development faster and easier one such tool is the storybook. Let us see how a storybook is used to accelerate the […]
RECENT UPDATE
Fixing slow Bcrypt and BasicAuthenticationFilter.doFilter
I recently investigated and fixed a performance issue with user authentication in our Spring Boot based API service. Our users started complaining about random 504s from our service. Looking at our thread […]
Jenkinsfile – Cheat sheet, Examples & References
All of these examples were tested with the ‘Multibranch Pipeline’ type jobs. This may not work with other types of jobs in Jenkins. Validate Jenkinsfile for syntax Navigate to the directory which […]
Vagrant Remote Debugging – Xdebug 3 & IntelliJ or PHPStorm
Debugging is one of the most efficient ways to investigate an unexpected behaviour. This post details how to setup a debugger for a PHP application running in a vagrant machine via your […]
iTerm2 – Clear scrollback automatically on a schedule
iTerm2 is my default terminal and have been using it for close to 8 years now. It is highly customizable and has API support for hackability. I was using it today to […]
MOST COMMENTED
Flutter
Flutter Setup
React Native
Learn React Native with a Board Game (Part 1 of 4)
jQuery / Web Development
jQuery DataTable: Sorting dynamic data
Uncategorized
Hibernate – Associations are not loaded
Database / Java / MySQL / Spring Boot
Hibernate Error – Encountered problem trying to hydrate identifier for entity
Spring Boot / Uncategorized
Working with Hibernate in a multi-threaded application
Web Development
Designing REST APIs