-
Method Summary
Retrieves an entity by its id.
void
Methods inherited from interface io.micronaut.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, save, saveAll, update, updateAll
-
Method Details
-
-
updateNickname
void updateNickname(@Id
String id,
@Parameter("nickName") @Nullable
@Nullable String nickName)
-
findById
Retrieves an entity by its id.
- Specified by:
findById in interface CrudRepository<Author,String>
- Parameters:
id - The ID of the entity to retrieve. Must not be null.
- Returns:
- the entity with the given id or Optional#empty() if none found
-
-
-
-