From: Gavin_King/Cirrus%<CI...@ci...> - 2002-08-09 02:42:53
|
>And I would expect 3 SQL statements with all the many-to-ones and >collections should get resolved from the cache. To enable caching, you need to add <jcs-cache usage="read-write"/> to all <class>, <set>, <map>, <list>, <array>, <primitive-array> elements that you want to cache. :) >My first shot at this returned: > >cirrus.hibernate.HibernateException: You tried to persist an object with a >reference to a transient instance - save the transient instance first This usually means you have an object sitting in the session with a reference to a transient object, at a point when the session was flushed. (ie. you saved a parent but not its child or you loaded an object and then assigned a reference to a child you hadn't saved yet.) If this exception occurred in any other circumstance, it would be a bug and I would *need* to know about it. But I doubt that.... |