PublisherActionRepository.java 486 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 findFirstByActionTypeAndPublisherOrderByPublisherActionDatetimeDesc(ActionType actionType, Publisher publisher);

    List<PublisherAction> findByPublisherVersion(PublisherVersion publisherVersion);
}