package it.gcatania.auctionservice.dao;

import java.util.List;

import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.RepositoryDefinition;

import it.gcatania.auctionservice.dataobjects.impl.PersistentBid;
import it.gcatania.auctionservice.dataobjects.impl.PersistentBidKey;

@RepositoryDefinition(domainClass = PersistentBid.class, idClass = PersistentBidKey.class)
public interface PersistentBidRepository extends CrudRepository<PersistentBid, PersistentBidKey> {

  PersistentBid findTopByKeyItem(String itemName, Sort sort);

  List<PersistentBid> findByKeyItem(String itemName);

  @Query("select key.item from PersistentBid where key.user = ?1")
  List<String> findItemsByUser(String userName);
}

@@ -219,73 +219,8 @@
 ory;
-%0Aimport org.springframework.data.repository.RepositoryDefinition;
 %0A%0Aim
@@ -357,99 +357,8 @@
 y;%0A%0A
-@RepositoryDefinition(domainClass = PersistentBid.class, idClass = PersistentBidKey.class)%0A
 publ

fix redundant annotation