Interface ImageRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Image,Long>, org.springframework.data.jpa.repository.JpaRepository<Image,Long>, org.springframework.data.repository.ListCrudRepository<Image,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<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>
Repository interface for managing Image entities.

This interface provides methods for performing CRUD operations and additional query methods for interacting with the database.

Since:
15.12.2024
Version:
1.0.0
Author:
Needle & Stitch
  • Method Summary

    Modifier and Type
    Method
    Description
    Finds an image by its name.

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

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

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByName

      Optional<Image> findByName(String name)
      Finds an image by its name.
      Parameters:
      name - The name of the image to find
      Returns:
      An Optional containing the found Image if present, otherwise an empty Optional.