Java

Spring Data JPA

Spring Data JPA @Query

Spring Data provides a multiple ways to implement a query. In this tutorial, we demonstrate how to use the @Query annotation to define JPQL (Java Persistence Query Language) and native queries in Spring Data JPA.

Read
Java

Java 8 – How to calculate days between two dates ?

How to calculate days between two dates in Java 8, with LocalDate, LocalDateTime or ChronoUnit

Read
Hibernate

How to escape SQL reserved keywords with Spring boot, JPA and Hibernate

How to escape SQL reserved keywords with Spring boot, JPA and Hibernate. solution to java.sql.SQLException You have an error in your SQL syntax; check the manual that corresponds to your ...

Read
Spring Boot

Externalized Configuration of Spring Boot application with @ConfigurationProperties

Spring Boot lets you externalize configuration with @ConfigurationProperties or @Value annotations so that you can work with the same application code in different environments. You can use properties files or YAML files, to externalize configuration.

Read