UserRepository

Repository interface for managing User entities.

This interface extends the generic Repository interface, providing CRUD operations for User entities identified by a UserId.

See also

Inheritors

Functions

Link copied to clipboard
abstract fun delete(entity: User)
Link copied to clipboard
abstract fun findByEmail(email: String): User?

Finds a user by their email address.

Link copied to clipboard
abstract fun findById(id: UserId): User?
Link copied to clipboard
abstract fun findByUsername(username: String): User?

Finds a user by their username.

Link copied to clipboard
abstract fun save(entity: User)
Link copied to clipboard
abstract fun update(entity: User)