Interface FabricRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Fabric,Long>, org.springframework.data.jpa.repository.JpaRepository<Fabric,Long>, org.springframework.data.repository.ListCrudRepository<Fabric,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<Fabric,Long>, org.springframework.data.repository.PagingAndSortingRepository<Fabric,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Fabric>, org.springframework.data.repository.Repository<Fabric,Long>

public interface FabricRepository extends org.springframework.data.jpa.repository.JpaRepository<Fabric,Long>
Repository interface for managing Fabric 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 a fabric 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<Fabric> findByName(String name)
      Finds a fabric by its name.
      Parameters:
      name - The name of the fabric to find
      Returns:
      An Optional containing the found Fabric if present, otherwise an empty Optional.