package com.github.solairerove.woodstock.repository;

import com.github.solairerove.woodstock.domain.base.BaseEntity;
import org.springframework.data.neo4j.repository.GraphRepository;

public interface GenericRepository<T extends BaseEntity> extends GraphRepository<T> {

}

@@ -153,122 +153,586 @@
 o4j.
-repository.GraphRepository;%0A%0Apublic interface GenericRepository%3CT extends BaseEntity%3E extends GraphRepository%3CT%3E %7B%0A
+annotation.Query;%0Aimport org.springframework.data.neo4j.repository.GraphRepository;%0Aimport org.springframework.data.repository.query.Param;%0A%0Apublic interface GenericRepository%3CT extends BaseEntity%3E extends GraphRepository%3CT%3E %7B%0A%0A    @Query(%22MATCH (task:Task)%3C-%5B:HAS_IN%5D-(tickets) WHERE id(task)=%7Bid1%7D RETURN tickets%22)%0A    Iterable%3CT%3E getTicketsThatHasInTaskFromId(@Param(%22id%22) Long id1);%0A%0A    @Query(%22MATCH (task:Task)%3C-%5B:HAS_IN%5D-(ticket) WHERE id(task)=%7Bid1%7D AND id(ticket)=%7Bid2%7D RETURN ticket%22)%0A    T getTicketThatHasInTaskFromId(@Param(%22id1%22) Long id1, @Param(%22id2%22) Long id2);
 %0A%7D%0A

Create generic repository stub: - how solve problem with entity