Interface DataOrganizationRepository

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

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

    Modifier and Type
    Method
    Description
    boolean
    Checks whether an organization with the specified email exists.
    boolean
    Checks whether an organization with the specified name exists.
    boolean
    Checks whether an organization with the specified phone 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

    • existsByNameAndIdIsNot

      boolean existsByNameAndIdIsNot(String name, Long id)
      Checks whether an organization with the specified name exists.
      Parameters:
      name - the name of the organization
      Returns:
      true if an organization with this name exists. otherwise false
    • existsByEmailAndIdIsNot

      boolean existsByEmailAndIdIsNot(String email, Long id)
      Checks whether an organization with the specified email exists.
      Parameters:
      email - the email of the organization
      Returns:
      true if an organization with this email exists. otherwise false
    • existsByPhoneAndIdIsNot

      boolean existsByPhoneAndIdIsNot(String phone, Long id)
      Checks whether an organization with the specified phone exists.
      Parameters:
      phone - the phone of the organization
      Returns:
      true if an organization with this phone exists. otherwise false