public interface FoodRepository extends CrudRepository<Food,java.util.UUID>
Modifier and Type | Method and Description |
---|---|
java.util.Optional<Food> |
findById(@NotNull java.util.UUID uuid)
Retrieves an entity by its id.
|
Food |
searchById(@NotNull java.util.UUID uuid) |
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, save, saveAll, update
@NonNull java.util.Optional<Food> findById(@NonNull @NotNull @NotNull java.util.UUID uuid)
CrudRepository
findById
in interface CrudRepository<Food,java.util.UUID>
uuid
- The ID of the entity to retrieve. Must not be null.@NonNull Food searchById(@NonNull @NotNull @NotNull java.util.UUID uuid)