Overview In this post, we are going to explore the reasons why does Hibernate need a no-arg constructor. The no-arg constructor need to be protected or public. A primer on […]
JPA
How To Map String To Boolean in Spring Data JPA
Overview There are times you work with legacy databases that store boolean values as strings. Let’s consider this example: Town A conducted a survey to see if their citizens like […]
JPA
Using SecondaryTable For Flexible Database Design (With example)
Let’s consider an example. You have been working on a website selling phones since 2000. In early 2000, there wasn’t any smartphone so you may created an object Phone like […]