Skip to content

Glossary: Spring Boot Basics

Record

Also written: records

A compact Java class that just holds data, declared with a list of components, such as `Product(String sku, String name, int priceCents, int stock)`. Jackson turns each component into a JSON field of the same name, and a record cannot serve as a JPA entity.

Where the book teaches it

Related terms

DTO (data transfer object)Entity