On Tue, Mar 3, 2009 at 8:10 AM, Emmanuel Bernard
<emmanuel@hibernate.org> wrote:
On Feb 28, 2009, at 08:08, Max Rydahl Andersen wrote:
2) What default do you think we should use for reveng, ALL or NONE (or something else ?)
none
What about PERSIST? I really like to be able to do this.
Child c1 = new Child();
Child c2 = new Child();
Parent p = new Parent();
p.addChild(c1);
p.addChild(c2);
em.persist(p);
With none, you have to go through and do persists all over the place...and in a real application, that top level object typically has 10+ relationships, esp if lookup tables are used.
-Dan