Interface DocAtrRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<DocAtrEntity,Long>, org.springframework.data.jpa.repository.JpaRepository<DocAtrEntity,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<DocAtrEntity>, org.springframework.data.repository.PagingAndSortingRepository<DocAtrEntity,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<DocAtrEntity>, org.springframework.data.repository.Repository<DocAtrEntity,Long>

@Repository public interface DocAtrRepository extends org.springframework.data.jpa.repository.JpaRepository<DocAtrEntity,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<DocAtrEntity>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     

    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, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlush

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

    count, findAll, findAll, findAll, findOne

    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

    • findAutoSelect

      @Query(value="SELECT distinct(value_string) FROM doc_atr WHERE atr_id=?1 ORDER BY value_string", nativeQuery=true) List<String> findAutoSelect(Integer atrId)
    • deleteAllByDocId

      @Transactional @Modifying void deleteAllByDocId(Integer docId)