TypedQuery<DashboardItem> query = em.createQuery("from DashboardItem WHERE parent = :parentID ORDER BY id", DashboardItem.class);
query.setParameter("parentID", dashboard);
Also without join capabilities if the associated id is stored on "this" side of the association.