I have three Entities User, Albums and Photo, In User l have a collection of Album, in Album l have a collection of photos. Now in my user.htlm i would like to know foreach user the number of album and the number of photo. I can get the number of album by using
<td th:text="${#lists.size(u.albums)}"></td>
How can l get the number of photo? Thanks for your answer