Re: SQL generation of FK constraints for cross-model relationships

From: Fabian Peters (lists.fabia..-lumo.com)
Date: Thu Jul 31 2008 - 16:14:04 EDT

  • Next message: Guido Neitzer: "Re: SQL generation of FK constraints for cross-model relationships"

    Am 31.07.2008 um 21:00 schrieb Guido Neitzer:

    > On 31.07.2008, at 11:31, Mike Schrag wrote:
    >
    >> It generates for whatever entities are passed into the generator,
    >> which is either for the single model (if nothing is selected), or I
    >> SUPPOSE you could select across models, but I've never tried. Try
    >> selecting all your entities + select the entities in the other
    >> model and see if that does it. All this does is call EOF API's, so
    >> it's going to do whatever EOF does when handed that set of
    >> entities. I suppose I could support selecting multiple models
    >> rather than selected entities, too.
    >
    > I think that is something in the way the SQL is generated - might
    > have to do with the fact, that different models can have different
    > connection dictionaries and therefore foreign key constraints would
    > not work if you connect to different databases.

    Good idea, but I just checked and in my case the connection
    dictionaries are identical...

    cheers, Fabian



    This archive was generated by hypermail 2.0.0 : Thu Jul 31 2008 - 16:14:49 EDT