Working with JPA and Hibernate
I'm not certain why, but I was getting: could not reassociate uninitialized transient collection for the longest of times when trying to merge my hibernate object into the database. The odd thing is, it would work in one set of unit tests but not another.
The thing that made it work?
Setting my Fetch types from lazy to eager. Of course, this makes my queries run nice and slow as it is fetching all of the subrecords.
I found this discussion to be interesting, but not necessarily helpful.
