Modeler and CAY-322

From: Mike Kienenberger (mkienen..laska.net)
Date: Tue Jun 14 2005 - 16:42:28 EDT

  • Next message: Mike Kienenberger: "Re: Modeler and CAY-322"

    in (CAY-322) cgen task cannot generate classes for cross-DataMap
    relationships, I wrote:
    > Since both fixes modify the namespace variable of the DataMaps passed in,
    this could cause problems in the modeler after class generation completes.

    In
    org.objectstyle.cayenne.modeler.dialog.classgen.ClassGeneratorController.generateClasses(),
    it appears that the DataMap is passed in "as-is". This means that
    DefaultClassGenerator will be modifying a "live" DataMap's namespace
    variable.

    Is this going to cause a problem? Does the modeler use the DataMap
    namespace? Should model.getMap() be cloned in the call? And if so, how?

            DefaultClassGenerator generator = new
    DefaultClassGenerator(model.getMap(), selected);



    This archive was generated by hypermail 2.0.0 : Tue Jun 14 2005 - 16:39:54 EDT