package org.i3xx.cloud.data.base.domain;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

public interface ChildRelationRepository extends CrudRepository<ChildRelation, String> {
	
	/**
	 * Search a Polbewga by it's id
	 * 
	 * @param reg
	 * @return
	 */
	List<ChildRelation> findByUuid(String uuid);
	
	@Query("select p from ChildRelation p where p.id = ?1 and p.up=?2")
	List<ChildRelation> findById(long up, long id);
	
}

@@ -67,63 +67,8 @@
 %0D%0A%0D%0A
-import org.springframework.data.jpa.repository.Query;%0D%0A
 impo
@@ -123,16 +123,16 @@
 itory;%0D%0A
+
 %0D%0Apublic
@@ -241,16 +241,21 @@
 h a 
-Polbewga
+ChildRelation
  by 
@@ -304,16 +304,16 @@
 %0D%0A%09 */%0D%0A
+
 %09List%3CCh
@@ -355,133 +355,7 @@
 );%0D%0A
-%09%0D%0A%09@Query(%22select p from ChildRelation p where p.id = ?1 and p.up=?2%22)%0D%0A%09List%3CChildRelation%3E findById(long up, long id);%0D%0A%09%0D%0A
 %7D%0D%0A

Fix search