package common.repository;

import common.model.RoleType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface RoleTypeRepository extends JpaRepository<RoleType, Long> {

    @Query(value="select position from role_type where type_key = ?1",nativeQuery=true)
    String getName(Long key);
}
