Say you have a LocalDate attribute in one of your models in your Spring based RESTful Web Service and you need your clients to send and receive the LocalDate in some form of yyyyMMdd LocalDate myDate; Simply add the following dependency to your classpath (pom.xml)...
Tag: jpa
Implementing custom methods for H2 Embedded Database
If you want to use an Embedded database such as H2 to unit test your code, you will need to implement your method manually in H2 if it doesn’t supply one out of the box. You can use Jooq to do this this public class...
Dealing with JPA Entities backed by SQL Queries that return no unique columns
Earlier I was working on a Spring Boot application where in I had to join multiple tables and map the returned columns to a JPA entity. But the problem was that none of the returned columns had unique values. Here’s a snippet of how my...