Hibernate version:
3.2.6 GA
Hi,
i have 3 Entities:
Person: has many Documents (OneToMany)
Document: has one DBFile (ManyToOne)
DBFile: contains the filecontent and such
Everytime when i access Person#getDocuments() the associated DBFile is also retrieved which leads to an OutOfMemoryException after a short time ...
How can i prevent this? (which annotations do i have to set where?)
I found
http://www.hibernate.org/162.html but setting
@ManyToOne(optional=false) on Document#getDBFile() didn't help.
On Jira i found some issues which have all been rejected with comment "read the documenatation" - very patronizing ... at least they could give a link to the right place