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
Post a Comment