MemoryUserCredentialsRepository

In-memory implementation of the UserCredentialsRepository interface.

This repository is used for managing UserCredentials entities in a development environment. It relies on an in-memory data store provided by the InMemoryRepository class.

Annotations:

  • @Singleton: Marks this class as a singleton bean in the Micronaut application context.

  • @Requires(env = "dev"): Ensures this implementation is only active in the "dev" environment.

Inheritors

Properties

Link copied to clipboard

The in-memory repository instance used for storing and managing UserCredentials entities.

Functions

Link copied to clipboard
open override fun delete(entity: UserCredentials)

Deletes a UserCredentials entity from the repository.

Link copied to clipboard
open override fun findById(id: UserId): UserCredentials?

Finds a UserCredentials entity by its unique identifier.

Link copied to clipboard
open override fun save(entity: UserCredentials)

Saves a new UserCredentials entity to the repository.

Link copied to clipboard
open override fun update(entity: UserCredentials)

Updates an existing UserCredentials entity in the repository.