package cn.efunbox.audio.repository; import cn.efunbox.audio.entity.Channel; import cn.efunbox.audio.entity.Rights; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import java.util.List; /** * Created by yao on 17-9-26. */ @Repository public interface RightsRepo extends JpaRepository { public List findById(Long id); public List findByIdChannel(Long idChannel); public List findByIdGroup(Long idGroup); public List findByIdChannelAndIdGroup(Long idChannel, Long idGroup); public List findByNameChannel(String nameChannel); public List findByNameGroup(String nameGroup); }