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

feat(JoinResource3TiersService): add findAllRelations method

parent 8c6e4ab8
No related branches found
No related tags found
1 merge request!357feat(JoinResource3TiersService): add findAllRelations method
......@@ -47,6 +47,18 @@ import ch.unige.solidify.specification.SolidifySpecification;
public abstract class JoinResource3TiersService<T extends Resource, V extends Resource, W extends Resource, J extends JoinResource<?>>
extends JoinResourceNTiersService<T, V, J> {
/**
* 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(true);
return this.joinRepository.findAll(specification);
}
/**
* Find all relations between the parent and the child and any grandchildren
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment