Skip to content

Commit

Permalink
Fix declaration of Payments repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
odrotbohm committed Apr 12, 2024
1 parent cfadd19 commit aa6ea3a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springsource.restbucks.order.Order;
import org.springsource.restbucks.order.Order.OrderIdentifier;
import org.springsource.restbucks.payment.Payment.PaymentIdentifier;

/**
* Repository interface to manage {@link Payment} instances.
*
* @author Oliver Gierke
*/
interface Payments extends CrudRepository<Payment<?>, Long>, PagingAndSortingRepository<Payment<?>, Long> {
interface Payments
extends CrudRepository<Payment<?>, PaymentIdentifier>, PagingAndSortingRepository<Payment<?>, PaymentIdentifier> {

/**
* Returns the payment registered for the given {@link Order}.
Expand Down

0 comments on commit aa6ea3a

Please sign in to comment.