I don't understand what is so difficult to understand here.

Persist() is no different to delete(), merge() or evict() in this
respect.

You have to explain things in terms of what operation is applied at
flush time. In the case of Hibernate it is the save/update operation. In
the case of EJB3 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:

> 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 more transient entities are associated with already persistent
instances, they will not become persistent, unless you also use the
save-update option, cascade="persist, save-update". Hibernate then
cascades the persistent state at flush time to all reachable entity
instances, if save-update is enabled for an association.

Correct?



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam for All
Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to