<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
-----BEGIN PGP SIGNED MESSAGE----- <br>
Hash: SHA1 <br>
&nbsp;<br>
Hey Alan,<br>
<br>
thanks a lot.<br>
The #beExclusive message did the job. I wasn't aware of the glorp<br>
mailing list, but I definately dig into it.<br>
<br>
Thanks again,<br>
Peter<br>
<br>
Alan Knight schrieb:<br>
<span style="white-space: pre;">&gt; Note that there is a Glorp
mailing list hosted at sourceforge,<br>
&gt; which is probably a better option for finding Glorp-specific<br>
&gt; answers.<br>
&gt; <br>
&gt; Glorp does not have the ability to take advantage of the
database's<br>
&gt; built-in cascading delete. The primary issue is that the objects
in<br>
&gt; memory won't get told about the deletions that have happened in
the<br>
&gt; database and so things will get out of sync. If you don't care<br>
&gt; about that (e.g. because you're going to throw away the objects
in<br>
&gt; memory right away after the delete anyway) then you could set up<br>
&gt; cascaded delete in tables as you would normally.<br>
&gt; <br>
&gt; If you're willing to let Glorp do the cascading (less efficient,<br>
&gt; but better control) then you can do this by sending the message<br>
&gt; #beExclusive to the mappings that you want to cascade.<br>
&gt; <br>
&gt; Taking advantage of update cascade seems to mean that you'd be<br>
&gt; changing the primary key of the object. I think that would be
very<br>
&gt; likely to cause any number of interesting problems, and I'd think<br>
&gt; long and hard before trying to do that from within Glorp. At a<br>
&gt; minimum, it's going to mess up the caching, which is based on<br>
&gt; primary keys, and you'd want to discard the session immediately.<br>
&gt; <br>
&gt; At 03:52 AM 12/4/2008, Peter Osburg wrote: Hi list,<br>
&gt; <br>
&gt; I am looking for a solution to define a cascaded update and
delete<br>
&gt; on a field. Unfortunately I can't find a solution. It would be<br>
&gt; great to get some help on the problem.<br>
&gt; <br>
&gt; Thanks in advance, Peter<br>
&gt;&gt; </span><br>
_______________________________________________<br>
seaside mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br>
<span style="white-space: pre;">&gt; -- Alan Knight [|], Engineering
Manager, Cincom Smalltalk <br>
&gt; <a class="moz-txt-link-abbreviated" href="mailto:knight@acm.org">knight@acm.org</a> <a class="moz-txt-link-abbreviated" href="mailto:aknight@cincom.com">aknight@cincom.com</a> <a class="moz-txt-link-freetext" href="http://www.cincom.com/smalltalk">http://www.cincom.com/smalltalk</a><br>
<br>
&gt; -------------------------<br>
<br>
&gt; _______________________________________________ seaside mailing<br>
&gt; list <a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a> <br>
&gt;
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a></span><br>
-----BEGIN PGP SIGNATURE-----
<br>
Version: GnuPG v1.4.9 (MingW32)
<br>
Comment: Using GnuPG with Mozilla - <a class="moz-txt-link-freetext" href="http://enigmail.mozdev.org">http://enigmail.mozdev.org</a>
<br>
&nbsp;<br>
iEYEARECAAYFAkk4/uMACgkQ0qdvZsCNFKGKygCgokSI3Wtoottp8oyDYmMziokx
<br>
hoAAoLArcnP4HpOrNPpfxLJRV/X6iUiQ
<br>
=dc18
<br>
-----END PGP SIGNATURE-----
<br>
<br>
</body>
</html>