Select distinct s from Student s left join fetch s.accounts where s.id=:studId
The code above is valid....it shows all the accounts of the student with the correct id (studId)
Now, all the accounts are shown, but they are not sorted...
All of them have the property ID (integer)
I want to sort them, but i have no idea how to access them...
I tried this already:
Select distinct s from Student s left join fetch s.accounts where s.id=:studId ORDER BY _____
s.accounts.id
accounts.id
account.id
s.account.id
but it does not work....can u help me?
↧