From: Gavin_King/Cirrus%<CI...@ci...> - 2002-02-25 13:00:15
|
I've just done some work today that removes one of the more annoying restrictions. You no longer have to be careful about the order you create (), save() and delete() objects in. Hibernate now does all that automagically. This also makes use of save() much more desirable and makes hibernate more efficient (performance-wise) by side effect :) for example, previously you couldn't write code like this: session = fac.openSession(); foo = new Foo(); bar = new Bar(); foo.setBar(bar); bar.setFoo(foo); session.save(foo); session.save(bar); session.commit(); session = fac.openSession(); // get the same foo and bar session.delete(foo); session.delete(bar); session.commit(); |