Package jakarta.data.repository


package jakarta.data.repository
In Domain-driven design, DDD, a repository is an object that participates in the domain but abstracts away storage and infrastructure details. Most systems have persistent storage, like a database, for their full functioning. Applying repositories happens by integrating and synchronizing with existing aggregate objects in the system.
  • Class
    Description
    A repository interface for performing basic operations on entities.
    A repository interface that extends the capabilities of basic operations on entities, including insert and update operations.
    Parent repository interface for all repositories.
    The Delete annotation indicates that the annotated repository method requests one or more entities to be removed from the database.
    The Insert annotation indicates that the annotated repository method requests that one or more entities be inserted into the database.
    Annotates a repository method to request sorting of results.
    Enables multiple OrderBy annotations on the same type.
    Repository fragment to provide methods to retrieve entities using the pagination and sorting abstraction.
    Annotation to bind method parameters to a Query via a named parameter.
    Defines the query string such as SQL, JPA-QL, Cypher etc.
    Annotates a data repository interface that will be implemented by the container/runtime.
    The Save annotation indicates that the annotated repository method updates one or more entities if found in the database and inserts entities into the database that are not found.
    The Update annotation indicates that the annotated repository method requests that one or more entities be updated if found in the database.