PublisherActionRepository.java
830 Bytes
package org.legrog.entities;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
/**
* Interface d'accès aux PublisherAction.
*/
public interface PublisherActionRepository extends JpaRepository<PublisherAction, Integer> {
/**
* Retourne la dernière action du type indiqué sur le Publisher indiqué.
*
* @param actionType
* @param publisher
* @return PublisherAction
*/
PublisherAction findFirstByActionTypeAndPublisherOrderByPublisherActionDatetimeDesc(ActionType actionType, Publisher publisher);
/**
* Retourne l'ensemble des actions concernant la PublisherVersion indiquée
* @param publisherVersion
* @return List<PublisherAction>
*/
List<PublisherAction> findByPublisherVersion(PublisherVersion publisherVersion);
}