PublisherActionRepository.java 482 Bytes
package org.legrog.entities;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface PublisherActionRepository extends JpaRepository<PublisherAction, Integer> {

    PublisherAction findFirstByActionTypeAndPublisherOrderByPublisherActionDatetime(ActionType actionType, Publisher publisher);

    List<PublisherAction> findByPublisherVersion(PublisherVersion publisherVersion);
}