package com.ewolff.microservice.shipping;

import java.util.Date;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface ShipmentRepository extends PagingAndSortingRepository<Shipment, Long>, CrudRepository<Shipment, Long> {

	@Query("SELECT max(s.updated) FROM Shipment s")
	Date lastUpdate();

}
