package uk.ac.ebi.spot.goci.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import uk.ac.ebi.spot.goci.model.Event;

/**
 * Created by emma on 06/05/16.
 *
 * @author emma
 *         <p>
 *         Repository accessing Evnet entity object
 */
@RepositoryRestResource
public interface EventRepository extends JpaRepository<Event, Long> {

}


@@ -214,16 +214,40 @@
 Event;%0A%0A
+import java.util.List;%0A%0A
 /**%0A * C
@@ -346,10 +346,10 @@
 g Ev
-n
 e
+n
 t en
@@ -458,12 +458,50 @@
 Long%3E %7B%0A
+    List%3CEvent%3E findByUserId(Long id);
 %0A%7D%0A%0A

Add method to find by user id