delete rule and class property
delete rule and class property
- Subject: delete rule and class property
- From: Johann Werner <email@hidden>
- Date: Tue, 6 Nov 2007 14:43:14 +0100
Hi,
I encountered a situation where I wanted to delete an eo and got a
referential integrity fault from the database. I could resolve that
problem but it left me with the unanswered question why it behaved
not as I expected:
I have two entities A <-->> B where both relationships have "nullify"
as delete rule. Entity A is some sort of lookup entity where normally
the relationship A -->> B is not used so I disabled the class
property for it. The relationship B --> A in contrast is a class
property.
When I delete an eo of entity A the delete rule to nullify all
references in B is not executed. Only by setting the relationship
back to a class property it works as expected. In PWO there is a
chapter on delete rules and one-sided relationships where it is
mentioned that you have to provide the delete rule in code but that
would be if only one relationship exists. In my case both are present
in the model file so EOF should know about it and follow the delete
rule, shouldn't it?
Does "one-sided" mean only one relationship between two entities
exists or only one relationship exists/is a class property? I didn't
find more precise information on that.
jw
PS: Could it be that in the latest WOLips the view filter in the
package explorer is broken? I get only the standard java view filter.
(on eclipse 3.3.1.1 with wolips 3.3.4603)Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden