- All Superinterfaces:
org.springframework.data.repository.CrudRepository<MenuItem,Long>
, org.springframework.data.repository.Repository<MenuItem,Long>
@Repository
public interface MenuItemRepository
extends org.springframework.data.repository.CrudRepository<MenuItem,Long>
-
Method Summary
boolean
This method returns a MenuItem entity with a given id.
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, findAll, findAllById, findById, save, saveAll
-
Method Details
-
findByDiningCommonsCodeAndMealCodeAndNameAndStation
This method returns a MenuItem entity with a given id.
- Parameters:
diningCommonsCode
- of menu item
mealCode
- of menu item
name
- of menu item
station
- of menu item
- Returns:
- Optional of Menu item based on the parameters (empty if not found)
-
existsById
boolean existsById(Long id)
- Specified by:
existsById
in interface org.springframework.data.repository.CrudRepository<MenuItem,Long>