I'm not really sure what you're trying to do in that query, but i think you don't need to do those joins. Hibernate will do that for you - that's the point of the mapping. You only need to select the OusourcedProductReceiped you want then use outsourcedProductReceiptEntry.getParentId().getToBeRepairedBy().getVendorName()
Usually you use joins in your queries when you didn't mapped that relation.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database