artman wrote:

> I'm using PostgreSql 8.1, and I have two classes below:

(...)
 
> I know because they are referred by each other, I can't create them in any
> order.

If you're only using PostgreSQL you can declare one FK to be of type
"deferred", i.e., PostgreSQL will accept "invalid" values until the end of
the transaction, where it will make all checks and then either rollback or
commit. 

You loose portability but you gain flexibility.


-- 
Jorge Godoy      <[EMAIL PROTECTED]>

"Quidquid latine dictum sit, altum sonatur."
- Qualquer coisa dita em latim soa profundo.
- Anything said in Latin sounds smart.



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to