-
Nested Class Summary
Nested Classes
-
Method Summary
Retrieves an entity by its id.
Methods inherited from interface io.micronaut.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, save, saveAll, update, updateAll
Methods inherited from interface io.micronaut.data.repository.jpa.JpaSpecificationExecutor
count, count, deleteAll, deleteAll, deleteAll, exists, exists, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findOne, findOne, findOne, updateAll, updateAll
-
Method Details
-
findById
@NonNull
@NonNull Optional<Food> findById(@NonNull @NotNull
@NonNull @NotNull UUID uuid)
Retrieves an entity by its id.
- Specified by:
findById in interface CrudRepository<Food,UUID>
- Parameters:
uuid - The ID of the entity to retrieve. Must not be null.
- Returns:
- the entity with the given id or Optional#empty() if none found
-
searchById
@NonNull
@NonNull Food searchById(@NonNull @NotNull
@NonNull @NotNull UUID uuid)
-
-
findAllByKeyOrderByLongName