package com.pollistics.repositories;

/**
 * Created by Maliek & Elias on 12/11/2016.
 */

import com.pollistics.models.Poll;
import org.springframework.stereotype.Repository;
import org.springframework.data.mongodb.repository.MongoRepository;

@Repository
public interface PollRepository extends MongoRepository<Poll,String> {
	// Insert custom querying methods here
}

@@ -119,16 +119,52 @@
 s.Poll;%0A
+import com.pollistics.models.User;%0A%0A
 import o
@@ -205,16 +205,41 @@
 sitory;%0A
+%0Aimport java.util.List;%0A%0A
 import o
@@ -387,45 +387,40 @@
  %7B%0A%09
-// Insert custom querying methods here
+List%3CPoll%3E findByUser(User user);
 %0A%7D%0A

add findByUser method