I'm fairly new to SQLObject so pardon me if this is an elementary question.

What is the difference between the following classes when creating
tables? The MultipleJoin method is not necessary, but is it
beneficial?

class Person(SQLObject):
    firstName   = StringCol()
    lastName    = StringCol()
    # Do these three lines matter? Why?
    owner        = MultipleJoin( 'Project', joinColumn='owner_id' )
    contact      = MultipleJoin( 'Project', joinColumn='contact_id' )
    developer  = MultipleJoin( 'Project', joinColumn='developer_id' )
                
class Project(SQLObject):
    Name                = StringCol(alternateID=True)
    Description = StringCol()
    Owner      = ForeignKey('Person')
    Contact    = ForeignKey('Person')
    Developer = ForeignKey('Person')

-- 
William F Pearson III

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to