How to create generic JPA repository
Generics makes it possible to reuse code, which is great. But when it needs to apply on a JPA repository, it can get messy. As any small mistake is going to ...
Generics makes it possible to reuse code, which is great. But when it needs to apply on a JPA repository, it can get messy. As any small mistake is going to ...
Noticed a small issue while using jackson to serialize a data class with a property that is a “is-getter” and has continuous capital letters after the “is”. ...
Dependency Injection is like a job matching service for variables in your code. You specify the job description, in the form of interface, or in a less ideal...
The SOLID principle is one of the most common acronym to describe the principles of object-oriented programming, which is subset of the many principles intro...
Use getById() if you just want to get a reference of the entity, like assigning it to a property of another entity. Use findById() if you actually want to g...