RE: [Hibernate] Flush behavior

2005-11-21 Thread Gavin King
B3 it is the persist operation. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christian Bauer Sent: Monday, November 21, 2005 6:18 AM To: Hibernate development Subject: Re: [Hibernate] Flush behavior On Nov 21, 2005, at 2:46 PM, Christian Bauer wrote:

RE: [Hibernate] Flush behavior

2005-11-21 Thread Gavin King
>> This is again correct. You must enable cascade save-update, as in all >> versions of Hibernate. > Why? Because no other behavior would be well-defined. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register fo

Re: [Hibernate] Flush behavior

2005-11-21 Thread Christian Bauer
On Nov 21, 2005, at 2:46 PM, Christian Bauer wrote: Why? Ok, so I'm trying to come up with a paragraph that explains this for the documentation: Note that if you use cascade="persist", Hibernate will only cascade the persistent state to associated entities reachable at call time. If m

Re: [Hibernate] Flush behavior

2005-11-21 Thread Christian Bauer
On Nov 21, 2005, at 2:14 PM, Gavin King wrote: Oh, you mean in plain Hibernate, not in HEM. This is again correct. You must enable cascade save-update, as in all versions of Hibernate. Why? --- This SF.Net email is sponsored by the JBoss

RE: [Hibernate] Flush behavior

2005-11-21 Thread Gavin King
Bauer; Hibernate development Subject: RE: [Hibernate] Flush behavior You are quite wrong. The persist() is applied and cascades at flush time. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christian Bauer Sent: Monday, November 21, 2005 1:46 AM To

RE: [Hibernate] Flush behavior

2005-11-21 Thread Gavin King
You are quite wrong. The persist() is applied and cascades at flush time. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christian Bauer Sent: Monday, November 21, 2005 1:46 AM To: Hibernate development Subject: Re: [Hibernate] Flush behavior On Nov

Re: [Hibernate] Flush behavior

2005-11-21 Thread Christian Bauer
On Nov 21, 2005, at 2:03 AM, Gavin King wrote: Huh? http://opensource.atlassian.com/projects/hibernate/browse/HHH-1181 s.persist(o) is only transitive to anything reachable at call time. em.persist(o) is transitive at flush time. ---

RE: [Hibernate] Flush behavior

2005-11-20 Thread Gavin King
Huh? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christian Bauer Sent: Sunday, November 20, 2005 12:58 PM To: Hibernate development Subject: Re: [Hibernate] Flush behavior On Nov 20, 2005, at 6:48 PM, Gavin King wrote: > Hibernate cascades

Re: [Hibernate] Flush behavior

2005-11-20 Thread Christian Bauer
On Nov 20, 2005, at 6:48 PM, Gavin King wrote: Hibernate cascades the saveOrUpdate() operation, EJB3 cascades the persist() operation. They should and are quite different. But why are persist (and possibly merge) only cascaded at call time and not at flush time, if I use the Session API? I

RE: [Hibernate] Flush behavior

2005-11-20 Thread Gavin King
development Subject: [Hibernate] Flush behavior > http://opensource.atlassian.com/projects/hibernate/browse/HHH-1181 They should be synchronized, if we have the same methods on Session and on EM, they should do the same. --- This SF.Net em

[Hibernate] Flush behavior

2005-11-20 Thread Christian Bauer
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1181 They should be synchronized, if we have the same methods on Session and on EM, they should do the same. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified