package com.mydreamjob.talentdiscovery; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import java.util.Collection; import java.util.List; import java.util.Optional; @Repository public interface StudentTalentDiscoveryPreferenceRepository extends JpaRepository { Optional findByStudentUserId(Long studentUserId); List findByStudentUserIdInAndEnabledTrue(Collection studentUserIds); }