Skip to content

Commit

Permalink
Omit cohort expression from list.
Browse files Browse the repository at this point in the history
Fixes #219.
  • Loading branch information
chrisknoll committed Jul 9, 2019
1 parent 7673a93 commit a9ac151
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public interface CohortDefinitionRepository extends CrudRepository<CohortDefinit
@Query("select cd from CohortDefinition cd LEFT JOIN FETCH cd.createdBy LEFT JOIN FETCH cd.modifiedBy where cd.id = ?1")
CohortDefinition findOneWithDetail(Integer id);

@Query("select cd from CohortDefinition AS cd JOIN FETCH cd.details LEFT JOIN FETCH cd.createdBy LEFT JOIN FETCH cd.modifiedBy")
@Query("select cd from CohortDefinition AS cd LEFT JOIN FETCH cd.createdBy LEFT JOIN FETCH cd.modifiedBy")
List<CohortDefinition> list();

@Query("select count(cd) from CohortDefinition AS cd WHERE cd.name = :name and cd.id <> :id")
Expand Down

0 comments on commit a9ac151

Please sign in to comment.