Let’s look at a few approaches for using Java records as DTOs that apply to Spring Boot 3 with Hibernate 6 as the persistence provider and YugabyteDB as the database.
With the Spring 6 and Spring Boot 3 releases, Java 17+ became the baseline framework version. So now is a great time to start using compact Java Records as Data Transfer Objects (DTOs) for various database and API calls.
0:00 Intro
0:38 Application Overview
2:12 Java Records as DTOs: Naive Approach
4:05 Java Records as DTOs: TupleTransformer
6:10 Java Records as DTOs: Record Creation Within a JPA Query
8:13 Java Records as DTOs: Hypersistence Utils
10:47 Summary and Next Steps
About Yugabyte: YugabyteDB is an open source, high-performance distributed SQL database built for your mission-critical applications. It is PostgreSQL compatible, cloud native, and runs on any public or hybrid cloud.
Learn more: https://www.yugabyte.com/
Learn more about distributed SQL at https://www.yugabyte.com/distributed-...
RESOURCES:
-YugabyteDB / Start Now: https://cloud.yugabyte.com
-Site: https://www.yugabyte.com
-GitHub: https://github.com/yugabyte
COMMUNITY:
-Slack: https://communityinviter.com/apps/yug...
-YouTube: / yugabyte
-Instagram: / yugabytedb
-Twitter: / yugabyte
-LinkedIn: / yugabyte
You can connect to all our community channels here: https://linktr.ee/yugabyte