2010/7/13 Daniel:
>> I seem to be uncomfortable using SQLObject because some of
>> my tables aren't really objects as much as linking tables.
>> In this case we have a User who has friends so I added a
>> Friends class (userid,friendid) which isn't really an
>> object in my mind.

i think youre thinking of ForeignKeys: http://www.sqlobject.org/FAQ.html#id15
when referencing itself, you´ll have something like a user table and a
user_user table, resulting in a n times m relationship between users
(a.k.a. friends).

hth,
frank

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to