Spring Data ‘LIKE’ Query with JdbcClient or JpaRepository
Learn to write SQL queries with ‘LIKE’ keyword in a Spring Boot JPA application and execute with JdbcClient, JdbcTemplate or JpaRepository template methods.
Learn to write SQL queries with ‘LIKE’ keyword in a Spring Boot JPA application and execute with JdbcClient, JdbcTemplate or JpaRepository template methods.
Since Spring 6.1, JdbcClient provides a unified client API for JDBC query and update operations, offering a more fluent and simplified interaction model.
This Spring Boot tutorial explores the basics of Elasticsearch such as creating index, CRUD operations, searching, and querying the documents with examples.
Learn to track or audit the @Entity creation and updation timestamps using Spring Data annotations, JPA lifecycle callbacks, Hibernate and Envers library.
Learn to use Spring CrudRepository and ListCrudRepository interfaces, their differences and the changes made in Spring Data 3.0 with examples.
Learn to use Redis Streams in a Spring Boot application to implement simple, in-memory and real-time stream processing of messages/events.
Learn to connect to Redis from Spring Boot, customize default config and perform cache operations using StringRedisTemplate / RedisTemplate.
Learn to use Redis Pub/Sub with Spring Boot Data, and configure the message publishers and subscribers (listners) for a given channel topic.
Learn to integrate Spring Boot with MongoDB using the Spring Data MongoDB API and work with database using MongoTemplate and MongoRepository.
Apache Cassandra is a distributed database system. This guide walks through the process of using Spring Data Cassandra with Spring Boot.
Learn to request partial data from the database using pagination and sorting inputs using the query parameters in spring boot and data apps.
Using custom SQL scripts in spring to initialize the database at startup of application with appropriate tables and data populated inside it.
AbstractRoutingDataSource is a very useful feature if we have a design which permits multiple databases based on certain criteria which may change for each user request. An example can be when we can use a particular database when the user belongs to a certain locale and switch to another locale …
HowToDoInJava provides tutorials and how-to guides on Java and related technologies.
It also shares the best practices, algorithms & solutions and frequently asked interview questions.