Skip to content

Commit

Permalink
fix: Rewrite query that gets all event_program enrollments to use exp…
Browse files Browse the repository at this point in the history
…licit join (#8957)
  • Loading branch information
stian-sandvold authored Oct 7, 2021
1 parent 9d05d58 commit 1244250
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public List<ProgramInstance> getWithScheduledNotifications( ProgramNotificationT
@Override
public List<ProgramInstance> getByType( ProgramType type )
{
String hql = "from ProgramInstance pi where pi.program.programType = :type";
String hql = "select pi from ProgramInstance pi join fetch pi.program p where p.programType = :type";

Query<ProgramInstance> query = getQuery( hql );
query.setParameter( "type", type );
Expand Down

0 comments on commit 1244250

Please sign in to comment.