Feature Requests item #665231, was opened at 2003-01-10 06:13 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428711&aid=665231&group_id=40712
Category: Interface Improvements (example) Group: Next Release (example) >Status: Closed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Improved cacheing of collections. Initial Comment: Suppose you have to tables A and B such that B references A A id, name B id, a_ID, name In such a case it is often usefull to declare a collection of B's in A (Common practice) and you can make the collection cachable in JCS. Now if I do: b = new B(); session.save(b); I create a new B row in the DB. I would expect the the collection of B's in A to be updated but it is not. It is out of date. What I have to do is this b= new B(); a.addB(b); session.save(b); I find this combersome and prone to errors. After all hibernate has all of the information to automaticly update the collection. [EMAIL PROTECTED] ---------------------------------------------------------------------- >Comment By: Gavin King (oneovthafew) Date: 2003-01-11 01:26 Message: Logged In: YES user_id=384580 The idea the session.save(b) would affect the state of a is the worst kind of side-effect I can possibly imagine. ideally save() shouldn't even change the state of b itself. We are trying to do transparent persistence here; the code to create a bidirectional association should be the same for transient objects as it is for persistent objects. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428711&aid=665231&group_id=40712 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel