parent « Fetch « JPA Q&A

1. Select does not retrieve Parent Object

2. left out join fetch in find results in duplicated parents

Hi Using Hibernate 2.1.4 on SQL Server I have a simple parent child relationship between AuditEvent and AuditDetail classes. The auditDetails set on my AuditEvent class is set to lazy="false". I'm wanting to find all AuditEvent objects and their associated AuditDetail objects. Now, I understand that for a find, Hibernate doesn't use outer join fetching. This means that I find all ...