Skip to content
Snippets Groups Projects
Commit 5491e19c authored by Mathieu.Vonlanthen's avatar Mathieu.Vonlanthen
Browse files

feat(JoinResource3TiersService): add findAllRelations method with one parameter

parent 672ad153
No related branches found
No related tags found
1 merge request!359feat(JoinResource3TiersService): add findAllRelations method with one parameter
......@@ -48,7 +48,20 @@ public abstract class JoinResource3TiersService<T extends Resource, V extends Re
extends JoinResourceNTiersService<T, V, J> {
/**
* Find all relations between the parent and the child and any grandchildren
* Find all relations in which the parent is involved
*
* @param parentId
* @return
*/
public List<J> findAllRelations(String parentId) {
Join3TiersSpecification<J> specification = this.getJoinSpecification(parentId, null, null);
specification.setFilterOnChildResId(false);
specification.setFilterOnGrandChildResId(false);
return this.joinRepository.findAll(specification);
}
/**
* Find all relations between the parent and the child
*
* @param parentId
* @param childId
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment