On Wed, Aug 08, 2007 at 07:46:17AM -0400, Bill Denney wrote:
> What is the difference between using a SingleJoin and a ForeignKey?
SingleJoin is a subclass of MultipleJoin that does the following:
-- if there are no objects in the join it can create one automatically;
-- if there are many objects in the join it returns one of them.
> Is
> it possible to use SingleJoin in one direction and MultipleJoin in
> another direction?
No, I think.
> A house may have multiple Notes and a room may have multiple notes, but
> a note should only go with one house or room.
This is one-to-many relation, ForeignKey+MultipleJoin.
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss