Implemented simple chaining of selects for JPA.