hibernate - Jpa join fetch sub query -


@query("select p project p join fetch p.notes n order n.date p.id=?1)") project getprojectforemployee(long id);

i want select project specific id. p.notes list of notes(onetomany). so, p.notes must order date.

thank you


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -