For OneToMany relations, flat-fetcher creates a plain old java collection to hold the fetched entities. Entity graph gets detached or if it gets used in a read-only transaction.
For read-write transactions, replacing the collection means that we hinder Hibernate's ability to track changes to the collection.
For OneToMany relations,
flat-fetchercreates a plain old java collection to hold the fetched entities. Entity graph gets detached or if it gets used in a read-only transaction.For read-write transactions, replacing the collection means that we hinder Hibernate's ability to track changes to the collection.