package com.eactive.eai.rms.data.entity.man.role;

import javax.persistence.QueryHint;

import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.QueryHints;

import com.eactive.eai.data.jpa.BaseRepository;
import com.eactive.eai.rms.data.EMSDataSource;
import com.querydsl.core.types.Predicate;

@EMSDataSource
public interface RoleRepository extends BaseRepository<Role, String> {

	@QueryHints({ @QueryHint(name = org.hibernate.annotations.QueryHints.CACHEABLE, value = "true") })
	@Override
	Iterable<Role> findAll(Predicate predicate, Sort sort);

}
