All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mosip.pms.common.repository.MispRepository Maven / Gradle / Ivy

There is a newer version: 1.3.0-dp.1
Show newest version
package io.mosip.pms.common.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import io.mosip.pms.common.entity.Misp;

/**
 * Repository class for fetching and updating mispid.
 * @since 1.0.0
 * @author Nagarjuna K
 */
@Repository
public interface MispRepository extends JpaRepository {

	/**
	 * Method to fetch last updated mispid.
	 * 
	 * @return the entity.
	 */
	@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();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy