[seam-dev] To cascade or not...

Dan Allen dan.j.allen at gmail.com
Wed Mar 4 14:38:13 EST 2009


On Wed, Mar 4, 2009 at 2:17 PM, Emmanuel Bernard <emmanuel at hibernate.org>wrote:

> Then add @*to*(cascade=CascadeType.PERSIST), it will take you 2 mins to do
> what you really like and you will know you do it.
>

It doesn't take two minutes when you have 80 entities. Most apps have large
databases. Rarely do you see simple schemas like we have in the examples.
When you generate your entities again and have to start all over. I think
this is a good default to have, as well as DELETE and maybe REFRESH. Daniel
can speak better to what he is seeing out in the field.

NONE is a crappy default.

-Dan

-- 
Dan Allen
Senior Software Engineer, Red Hat | Author of Seam in Action

http://mojavelinux.com
http://mojavelinux.com/seaminaction

NOTE: While I make a strong effort to keep up with my email on a daily
basis, personal or other work matters can sometimes keep me away
from my email. If you contact me, but don't hear back for more than a week,
it is very likely that I am excessively backlogged or the message was
caught in the spam filters.  Please don't hesitate to resend a message if
you feel that it did not reach my attention.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/seam-dev/attachments/20090304/89e862b6/attachment.html 


More information about the seam-dev mailing list