Re: Using standalone EntityModeler

From: Mike Schrag (mschra..dimension.com)
Date: Wed Sep 03 2008 - 23:17:56 EDT

  • Next message: Peter Vandoros: "Re: Using standalone EntityModeler"

    There is an IDEA .ipr project file parser implementation, but I don't
    use IDEA, so all I can say is that it works for a particular ipr file
    that was used as the model for the parser ... Someone would need to
    debug the parser to determine why it isn't locating the models in your
    case.

    You can also setup a .EntityModeler.modelpath file that is searched
    for in the following paths:

                    fillInSearchFolders(new File(selectedModelFolder,
    "EntityModeler.modelpath"), searchFolders);
                    fillInSearchFolders(new File(selectedModelFolder,
    ".EntityModeler.modelpath"), searchFolders);
                    if (selectedModelFolder != null) {
                            fillInSearchFolders(new File(selectedModelFolder.getParentFile(),
    "EntityModeler.modelpath"), searchFolders);
                            fillInSearchFolders(new File(selectedModelFolder.getParentFile(),
    ".EntityModeler.modelpath"), searchFolders);
                    }
                    fillInSearchFolders(new File(System.getProperty("user.home"),
    "EntityModeler.modelpath"), searchFolders);
                    fillInSearchFolders(new File(System.getProperty("user.home"),
    ".EntityModeler.modelpath"), searchFolders);
                    fillInSearchFolders(new File(System.getProperty("user.home") + "/
    Library", "EntityModeler.modelpath"), searchFolders);
                    fillInSearchFolders(new File(System.getProperty("user.home") + "/
    Library", ".EntityModeler.modelpath"), searchFolders);
                    fillInSearchFolders(new File(System.getProperty("user.home") + "/
    Library/Preferences", "EntityModeler.modelpath"), searchFolders);
                    fillInSearchFolders(new File(System.getProperty("user.home") + "/
    Library/Preferences", ".EntityModeler.modelpath"), searchFolders);

    Each line of the file should specify a path to search within to find
    dependent models.

    To be able to generate SQL and reverse engineer, you also need to
    setup a .EntityModeler.classpath file:

                    fillInClasspathURLs(new File(modelFolder,
    "EntityModeler.classpath"), classpathUrls);
                    fillInClasspathURLs(new File(modelFolder,
    ".EntityModeler.classpath"), classpathUrls);
                    fillInClasspathURLs(new File(modelFolder.getParent(),
    "EntityModeler.classpath"), classpathUrls);
                    fillInClasspathURLs(new File(modelFolder.getParent(),
    ".EntityModeler.classpath"), classpathUrls);
                    fillInClasspathURLs(new File(System.getProperty("user.home"),
    "EntityModeler.classpath"), classpathUrls);
                    fillInClasspathURLs(new File(System.getProperty("user.home"),
    ".EntityModeler.classpath"), classpathUrls);
                    fillInClasspathURLs(new File(System.getProperty("user.home") + "/
    Library", "EntityModeler.classpath"), classpathUrls);
                    fillInClasspathURLs(new File(System.getProperty("user.home") + "/
    Library", ".EntityModeler.classpath"), classpathUrls);
                    fillInClasspathURLs(new File(System.getProperty("user.home") + "/
    Library/Preferences", "EntityModeler.classpath"), classpathUrls);
                    fillInClasspathURLs(new File(System.getProperty("user.home") + "/
    Library/Preferences", ".EntityModeler.classpath"), classpathUrls);

    where each line specifies the location a jar file that is required to
    run SQL generation (wo jars, plugin jars + any other jars required to
    bootstrap that process in your environment).

    ms

    On Sep 3, 2008, at 8:46 PM, Peter Vandoros wrote:

    > Hi List,
    >
    > I am having issues trying to use standalone EntityModeler with an
    > IDEA project that has 7+ models spread across multiple frameworks.
    >
    > I downloaded the 1.0.7 release of standalone EntityModeler and
    > opened up one of my models and received lots of EOModel Verification
    > Errors with not being able to find my prototype definition. These
    > are defined in a separate framework.
    >
    > How do I load all my models correctly for my project?
    > Do I need to define a model group to make it work? If so, how can I
    > define the model group for my project?
    >
    > Regards
    >
    > Peter Vandoros
    > Software Engineer
    > Etech Group Pty Ltd
    > Level 3/21 Victoria St
    > Melbourne VIC 3000
    > Australia
    >
    > Ph: +61 3 9639 9677
    > Fax: +61 3 9639 9577
    > ----------------------------------
    > IMPORTANT: This e-mail message and any attachments are confidential
    > and may be privileged. If received in error, please reply to this
    > message and destroy all copies and any attachments. You should check
    > this message and any attachments for viruses or defects. Our
    > liability is limited to resupplying any affected message or
    > attachments. For more information about Etech Group, please visit us
    > at http://www.etechgroup.com.au.
    >
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Wed Sep 03 2008 - 23:18:59 EDT