David Nielsen <mailto:[EMAIL PROTECTED]> once said:
> I finaly got it right..
Glad you got it working. As Daniel pointed out already, though, you are
not using a 1:N relation for toUsers.
Here are my assumptions about your design:
- MailMessages represents a typical email message as we all understand
it.
- A single user can send many messages.
- Each message can be addressed to many users.
- Each user may receive many messages.
If those are all correct, your actual design looks like the following.
---------N:M-------->
toUsers receivers
MailMessages Users
---------N:1-------->
fromUser sender
Even though each message has one fromUser (which makes it look like 1:1
from the message side), since each user may send many messages, it's
actually N:1. Thus, you do need a relation table for toUsers, but not
for fromUser.
David Harkness
Sr. Software Engineer
Sony Pictures Digital Networks
(310) 482-4756
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user