问题 i have below entities Cart(id, cartNumber) - one Cart has many CartDetail CartDetail(id, quantity, total, cartId, productId) Product(id, name) - one Product has many CartDetail i also have corresponding DTO classes now using QueryDSL with DTO pattern i need to find out cart by id with following fields cartId, cartNumber, cartDetails(quantity, total, productName) currently this i am doing like below JPQLQuery<CartDto> jpqlQuery = query.select(new QCartDto(cart.id, cart.cartNumber, cart