Spring JPA (Java Persistence API) provides an abstraction layer over JPA using ORM (Object Relational Mapping). Spring JPA simplifies database interactions by abstracting common operations to simple Java objects and annotations.
What this sample demonstrates
Testcontainers
Disposable Oracle AI Database Free containers for repeatable local and integration tests.
Use when tests need real database behavior without sharing a long-lived development instance.
Spring
Spring framework samples for data access, messaging, configuration, and application wiring.
Use when Java applications need Spring-managed components backed by Oracle AI Database.
Highlights
- Spring JPA By Example: One-to-One, Many-to-One, and Many-to-Many
- Spring JPA: Paging, Sorting, and Filtering
- If you're using Spring Boot JdbcClient or JdbcTemplate, you can use AOP or @ControllerAdvice
- If you're using JDBC directly, you may also catch and handle the SQLException in-place for ORA-type errors.