/FileExtraction/Java_unseen/asarkar_spring/user-preference-service/src/test/java/name/abhijitsarkar/javaee/userpref/repository/JPAUserPreferenceRepository.java
package name.abhijitsarkar.javaee.userpref.repository;

import java.util.Optional;

import org.springframework.data.repository.Repository;

import name.abhijitsarkar.javaee.userpref.domain.UserPreferenceEntity;
import name.abhijitsarkar.javaee.userpref.domain.UserPreferenceId;

public interface JPAUserPreferenceRepository
	extends Repository<UserPreferenceEntity, UserPreferenceId> {

    Optional<UserPreferenceEntity> findOne(UserPreferenceId id);

    Optional<UserPreferenceEntity> save(UserPreferenceEntity userPreference);

    void delete(UserPreferenceId id);
}
