com.dream.repositories.TrackingRepository Maven / Gradle / Ivy
package com.dream.repositories;
import com.dream.models.Tracking;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;
/**
* Repository for {@link Tracking}
*/
@Repository
public interface TrackingRepository extends JpaRepository {
Optional findByIpAddressAndDreamId(String ipAddress, Long dreamId);
Optional findByIpAddressAndCommentId(String ipAddress, Long commentId);
}