Hi for the spring-boot-starter-data-jpa dependency I made a mistake by saying we need jpql to define repositories. I mean we need the JPA ( Jakarta Persistence API ) to define the repositories which allow us to use JPQL (Jakarta Persistence Query Language ) to execute queries. So my bad ! :). Those are formers Java Persistence API and Java Persistence Query Language. The advantage of using JPA ans JOQL queries is that - if we change the data source e.g. we change it from Redis to PostgreSQL the queries and the application will still work. So it provide us with abstraction over the data source of the application.
Hi for the spring-boot-starter-data-jpa dependency I made a mistake by saying we need jpql to define repositories. I mean we need the JPA ( Jakarta Persistence API ) to define the repositories which allow us to use JPQL (Jakarta Persistence Query Language ) to execute queries. So my bad ! :). Those are formers Java Persistence API and Java Persistence Query Language. The advantage of using JPA ans JOQL queries is that - if we change the data source e.g. we change it from Redis to PostgreSQL the queries and the application will still work. So it provide us with abstraction over the data source of the application.