question 2 « Query « JPA Q&A





1. Question on select query    forum.hibernate.org

2. JPA Query Question    forum.hibernate.org

I have the following query, which doesn't seem to be working properly. Specifically, it's only returning a single record when multiple records should be returned. The Declaration domain object has a one-to-many relationship to the Stamp domain object. Any help on this would be greatly appreciated! SELECT NEW org.cityofchicago.dor.ezdec.domain.declaration.NonRecordedDeclarationRecord(d, s) " + "FROM Declaration d left join d.stamps s " + ...