Module jakarta.data

Package jakarta.data.repository


package jakarta.data.repository

A repository is an interface annotated with Repository that defines operations on entities. Entities represent data in the persistent store. In Domain-driven design, a repository participates in the domain but abstracts away storage and infrastructure details.

Repository interfaces can optionally inherit from built-in interfaces within this package,

Repository interfaces can also define their own lifecycle methods using the Insert, Update, Save, and Delete annotations, as well as a variety of other methods following the Query by Method Name pattern, the Parameter-based Conditions pattern, and the Query annotation.

The module Javadoc provides an overview of Jakarta Data.