Skip to content

Commit

Permalink
Use left outer join when retrieving image.format
Browse files Browse the repository at this point in the history
  • Loading branch information
sbesson committed May 18, 2024
1 parent 4cb55c5 commit 285979b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ protected Pixels getPixels(omero.client client, Long imageId)
return (Pixels) client.getSession().getQueryService().findByQuery(
"SELECT p FROM Pixels as p " +
"JOIN FETCH p.image as i " +
"JOIN FETCH i.format " +
"LEFT OUTER JOIN FETCH i.format " +
"LEFT OUTER JOIN FETCH i.details.externalInfo " +
"JOIN FETCH p.pixelsType " +
"WHERE i.id = :id",
Expand Down

0 comments on commit 285979b

Please sign in to comment.