collection was not processed by flushWhat happened? I have the following class structure.
Artist -> Album -> Song (parent -> child) Library -> Stat (parent -> child) Song - Stat (association)Artist and Library are aggregates in DDD sense. Artist is the parent of Album, Album is the parent of Song. Library is the parent of Stat. What's important, there's also a bidirectional relationship between Song and Stat (but no ownership). The exception occurred in the following situation:
- I had an Artist with one Album with one Song that had an association with one Stat being a child of its Library and that was created in Transaction 1.
- In Transaction 2, the whole thing was loaded again, a new Stat added, being a child of a new Library.
- Transaction 2 ended. Exception thrown.