Interface MispRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<Misp,​Integer>, org.springframework.data.jpa.repository.JpaRepository<Misp,​Integer>, org.springframework.data.repository.PagingAndSortingRepository<Misp,​Integer>, org.springframework.data.repository.query.QueryByExampleExecutor<Misp>, org.springframework.data.repository.Repository<Misp,​Integer>

    @Repository
    public interface MispRepository
    extends org.springframework.data.jpa.repository.JpaRepository<Misp,​Integer>
    Repository class for fetching and updating mispid.
    Since:
    1.0.0
    Author:
    Nagarjuna K
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Misp findLastMispId()
      Method to fetch last updated mispid.
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

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

        count, exists, findAll, findOne
    • Method Detail

      • findLastMispId

        @Query(value="select t.curr_seq_no,t.cr_by,t.cr_dtimes,t.upd_by,t.upd_dtimes FROM tspid_seq t where t.curr_seq_no=(select max(t.curr_seq_no) FROM tspid_seq t)",
               nativeQuery=true)
        Misp findLastMispId()
        Method to fetch last updated mispid.
        Returns:
        the entity.