[elephant-devel] Re: Master-detail how to
Vagif Verdi
vagif at cox.net
Tue Apr 8 04:30:21 UTC 2008
> (defun delete-order (order)
> (mapcar #'(lambda (i) (drop-instances (list i))) (items-of order))
> (drop-instances (list order)))
Thank you very much Robert.
Very simple and clear example of dealing with one-to-many relationships.
This must be an elephant tutorial.
Although cascading deletes are indeed a nice feature of sql servers, I'm
fedup with sql inflexibility dealing with complex hierarchies of objects. I
want to try OODB. Elephant is the only choice in a lisp land. Allegrocache
is expensive, rucksack in its infancy.
So far I like it.
Regards,
Vagif
More information about the elephant-devel
mailing list