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 theImagetable.
-
-
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 specificProduct.-
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
-
-