How to handle relationship properties?
How to handle relationship properties?
- Subject: How to handle relationship properties?
- From: Miguel Arroz <email@hidden>
- Date: Sun, 1 Jan 2006 14:53:28 +0000
Hi!
Imagine I have the following scenario:
- An entity "user".
- An entity "file".
- A many-to-many relationship between both.
Now, I want to store something like the access permissions a user
have over each file. The obvious way to do that is storing that data
in the relationship itself. What's the best way to do that in
WebObjects? The problem is that the userFile record is only created
when inserting the "user" and "file" records in the DB, so I cannot
access it (and change it) before a save. But if I save, I get an
error that I'm violating the non-null constraints. Of course, I may
drop the non-null constraint, but this seems a bit ugly to me...
How do you guys do this kind of stuff?
Yours
Miguel Arroz
"We have no sympathy for the lost souls
We've chosen the path of disgrace
We give this life to our children
And teach them to hate this place" -- Apocalyptica, Life Burns!
Miguel Arroz
http://www.ipragma.com
_______________________________________________
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