Hi John,
On 04/09/09 06:35, John Kaufmann wrote:
In Base's New Relationship pane (Tools -> Relationships), how is the
cascade direction determined? Take the classic 3-table example of
[Department - Employee - EmployeePix] with these relationships:
Department (1) - (n) Employee (each Department record links to
multiple Employee records)
Employee (1) - (1) EmployeePhoto (each Employee records links to
one EmployeePhoto record)
Between a Department and its Employees, there /might/ be a cascade
relationship - that is, if a Department is deleted, all of its
Employees are deleted - but that's typically not a concern. What /is/
a typical concern is that if an Employee is deleted, the linked
EmployeePhoto record is deleted - but not the other way around: One
might need to delete or change an EmployeePhoto without deleting or
changing the Employee. So there is a clear unidirectional cascade.
How does Base determine that direction?
That depends on the database you use. As Base itself doesn't care, the
database has the responsibility to do the right. I didn't tested what
the embedded hsqldb database do. But in the relation ships design you
can select what should happen on each side differently. So in your
example just define that when an employee is deleted than his photo
should be deleted as well and when only his photo is deleted the
employee stays untouched.
Ocke
PS: The best list for Base questions is [email protected] or
[email protected]
John
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
Ocke Janssen Tel: +49 40 23646 661, x66661
Dipl. Inf(FH) Fax: +49 40 23646 550
Sun Microsystems Inc.
Nagelsweg 55 mailto:[email protected]
D-20097 Hamburg http://www.sun.com/staroffice
Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1,
D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]