parent « Join « JPA Q&A





1. Duplicate Parent record when joined with one-to-many    forum.hibernate.org

I'm having problem retrieving parent data with one-to-many relationship. Whenever i retrieve parents with more than one child, the list returned contains duplicate parent records, although the physical records in database is unique The parent record has one ScoreCard The child records have two TestChunk Code: String scoreCardQuery = ...