Interface DataSubjectRepository

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

@Repository public interface DataSubjectRepository extends org.springframework.data.jpa.repository.JpaRepository<SubjectEntity,Long>, org.springframework.data.repository.PagingAndSortingRepository<SubjectEntity,Long>
JPA repository for managing SubjectEntity entities in the database. Extends JpaRepository and PagingAndSortingRepository to provide CRUD operations and pagination.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks whether a subject with the specified name that belongs to certain organization exists.

    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

    • existsByNameAndOrganizationId

      boolean existsByNameAndOrganizationId(String name, Long id)
      Checks whether a subject with the specified name that belongs to certain organization exists.
      Parameters:
      name - the name of the subject
      id - the unique identifier of the organization
      Returns:
      true if a subject with this name exists. Otherwise false