Interface ItemRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ItemEntity,
,Long> org.springframework.data.querydsl.QuerydslPredicateExecutor<ItemEntity>
,org.springframework.data.repository.Repository<ItemEntity,
Long>
public interface ItemRepository
extends org.springframework.data.repository.CrudRepository<ItemEntity,Long>, org.springframework.data.querydsl.QuerydslPredicateExecutor<ItemEntity>
class ItemRepository
The Interface ItemRepository
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteByItemId
(long id) This method is used to delete the item using id.findByIdAndItemGroupEntityId
(long id, long itemGroupId) findByIdAndItemGroupEntityIddefault ItemEntity
updateItem
(ItemEntity itemEntity) updateItemMethods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
Methods inherited from interface org.springframework.data.querydsl.QuerydslPredicateExecutor
count, exists, findAll, findAll, findAll, findAll, findAll, findBy, findOne
-
Method Details
-
updateItem
updateItem- Parameters:
itemEntity
- itemEntity- Returns:
- return updated itemEntity record.
-
findByIdAndItemGroupEntityId
findByIdAndItemGroupEntityId
- Parameters:
itemGroupId
- - holds the item Group Idrid
- - holds the identifier- Returns:
- ItemEntity returns the item entity
-
deleteByItemId
@Transactional @Modifying @Query("delete from item where id = :id") void deleteByItemId(@Param("id") long id) This method is used to delete the item using id.- Parameters:
id
- indicates the item id.
-