If I am put my 5 cents (inflation).  My personal default is (PERSIST, MERGE, REFRESH) and in the circumstance that I need to put a DELETE then I would if necessary.  I assume beginner Seam developers would absolutely freak if they saw a detached entity exceptions when they first use Seam&#39;s reveng.<br>
<br><br><div class="gmail_quote">On Wed, Mar 4, 2009 at 10:54 AM, Dan Allen <span dir="ltr">&lt;<a href="mailto:dan.j.allen@gmail.com">dan.j.allen@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><div class="gmail_quote"><div class="im">On Tue, Mar 3, 2009 at 8:10 AM, Emmanuel Bernard <span dir="ltr">&lt;<a href="mailto:emmanuel@hibernate.org" target="_blank">emmanuel@hibernate.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br>
On  Feb 28, 2009, at 08:08, Max Rydahl Andersen wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
2) What default do you think we should use for reveng, ALL or NONE (or something else ?)<br>
</blockquote>
<br></div>
none</blockquote></div><div><br>What about PERSIST? I really like to be able to do this.<br><br>Child c1 = new Child();<br>Child c2 = new Child();<br>Parent p = new Parent();<br>p.addChild(c1);<br>p.addChild(c2);<br>em.persist(p);<br>

<br>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.<br><br>-Dan<br> </div></div><br>
-- <br>
Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br><br><a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br>

<br>NOTE: While I make a strong effort to keep up with my email on a daily<br>basis, personal or other work matters can sometimes keep me away<br>from my email. If you contact me, but don&#39;t hear back for more than a week,<br>

it is very likely that I am excessively backlogged or the message was<br>caught in the spam filters.  Please don&#39;t hesitate to resend a message if<br>you feel that it did not reach my attention.<br>
<br>_______________________________________________<br>
seam-dev mailing list<br>
<a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Daniel Hinojosa<br>Programmer, Instructor, and Consultant<br><br>2529 Wisconsin St. NE<br>Albuquerque, NM 87110<br><a href="mailto:dhinojosa@evolutionnext.com">dhinojosa@evolutionnext.com</a><br>
<br><a href="http://www.evolutionnext.com">http://www.evolutionnext.com</a><br><a href="http://www.abqjug.org">http://www.abqjug.org</a><br><br>(505) 363-5832<br>