Interface ImageRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<Image,​Long>, org.springframework.data.jpa.repository.JpaRepository<Image,​Long>, org.springframework.data.repository.PagingAndSortingRepository<Image,​Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Image>, org.springframework.data.repository.Repository<Image,​Long>

    public interface ImageRepository
    extends org.springframework.data.jpa.repository.JpaRepository<Image,​Long>
    The ImageRepository contains methods used to query the database for items in the Image table.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      List<Image> getAllByProductOrderByCreatedAsc​(Product product)
      Method to return all images associated with a specific Product.
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findOne
    • Method Detail

      • getAllByProductOrderByCreatedAsc

        List<Image> getAllByProductOrderByCreatedAsc​(Product product)
        Method to return all images associated with a specific Product.
        Parameters:
        product - The Product with which the desired Image objects are associated.
        Returns:
        A List of Image objects associated with the given Product.