Learn about using Optional as a record parameter and understand why it’s a bad practice.
Search Results for: record definition
Overriding hashCode() And equals() For Records
Learn how records provide us with a default implementation of equals() and hashCode() methods.
Custom Constructor in Java Records
Learn how to create custom constructors for Java Records and the benefits they provide.
Generate Java Classes From Avro Schemas Using Gradle
Learn to generate Java classes from Apache Avro schemas using Gradle.
Spring Data JPA Repository for Database View
Learn how Spring Data repositories can be effectively applied to database views
OAuth2 Backend for Frontend With Spring Cloud Gateway
In this tutorial, we implement the OAuth2 Backend for Frontend (BFF) pattern with Spring Cloud Gateway and spring-addons.
Storing PostgreSQL JSONB Using Spring Boot and JPA
Learn how to proficiently store and manage JSON data in PostgreSQL using Spring Boot and JPA
Introduction to Spring AI
Learn the fundamentals of using generative AI in Spring Boot applications and understand the essential AI concepts.
Unnamed Patterns and Variables in Java 21
Learn about an exciting preview feature in Java 21: unnamed patterns and variables.
Value-Based Classes in Java
Explore value-based classes and the notion of value types in Java.
Understanding Kafka Topics and Partitions
Discover the power of partitions in Kafka topics and learn how to consume messages from partitioned topics using Spring Boot.
Load Testing Rest Endpoint Using Gatling
Learn how to use Gatling to do performance testing on any Rest endpoint.
Observability With Spring Boot 3
A quick and practical guide to observability with Spring Boot 3.
Java Weekly, Issue 441
Java GCs, Project Panama, Spring Data JDBC, multiset vs joins, structured concurrency, and HTTP/3.
How to Mock HttpServletRequest
Learn multiple ways to mock a HttpServletRequest object when unit testing Servlet code in Java.
Spark DataFrame
Spark’s DataFrame component is an essential part of its API. It represents data in a table like way so we can perform operations on it. We look at the Java Dataset type, which is used to interact with DataFrames and we see how to read data from a JSON file and write it to a database.
A Guide to JPA Buddy
Explore JPA Buddy and its main features and see how we can use them during the application development cycle.
Difference Between POJO, JavaBeans, DTO and VO
Learn what Data Transfer Object (DTO), Value Object (VO), Plain Old Java Object (POJO), and JavaBeans are. Understand the differences between them and when to use each type.
Check Collection Existence in MongoDB
Explore various ways to check the existence of a collection using the MongoDatabase and DB class methods.
An Introduction to Domain Graph Service (DGS) Framework
Learn how to use the Domain Graph Service (DGS) Framework from Netflix to build a simple Spring Boot GraphQL service in Java.