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 Type
    Method
    Description
    void
    deleteByItemId(long id)
    This method is used to delete the item using id.
    findByIdAndItemGroupEntityId(long id, long itemGroupId)
    findByIdAndItemGroupEntityId
    default ItemEntity
    updateItem(ItemEntity itemEntity)
    updateItem

    Methods 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

      default ItemEntity updateItem(ItemEntity itemEntity)
      updateItem
      Parameters:
      itemEntity - itemEntity
      Returns:
      return updated itemEntity record.
    • findByIdAndItemGroupEntityId

      Optional<ItemEntity> findByIdAndItemGroupEntityId(long id, long itemGroupId)

      findByIdAndItemGroupEntityId

      Parameters:
      itemGroupId - - holds the item Group Idr
      id - - 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.