Sorry for the confusion...
I don't want to have a "Connection" in a database unless the connection is
between existing "Blocks".
Please correct my class definition for Block and Connection so, that it won't
be even possible to create such connection.
Zoran
________________________________
From: petr.jakes....@gmail.com [mailto:petr.jakes....@gmail.com] On Behalf Of
Petr Jakeš
Sent: Wednesday, January 07, 2009 9:51 AM
To: Zoran Bošnjak
Cc: sqlobject-discuss@lists.sourceforge.net
Subject: Re: [SQLObject] table ralations
# create dumb connection
# it should not work, because there is no blocks!!!
Connection(src=150, dst=250)
Why do you think this should not work? AFIK above mentioned just insert one row
(record) in your table Connection. Exactly as the SQL below describes.
INSERT INTO "connection" VALUES(1,150,250); COMMIT;
sqlite>
Petr
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss