Re: maven plugin for importing DB schema

From: Adrian A. (a.adrian.tec..ooglemail.com)
Date: Sat Apr 11 2009 - 05:45:09 EDT

  • Next message: Andrus Adamchik: "Re: svn commit: r764019 - /cayenne/main/trunk/framework/maven-cayenne-plugin/src/main/java/org/apache/cayenne/tools/DbImporterMojo.java"

    >
    > Well, please understand that I'm writing this not because I need it but
    > because others have requested it and I can see value in having it. At the
    > moment, all my projects are in maven, so it made it a lot easier to test
    > that way. Frankly, I'd just assume write in jRuby and use buildr. The
    > process would be a lot simpler for me.

    Please feel free to correct me if I'm wrong, but:
    - shouldn't exactly the same functionality be in Cayenne Modeler, the Maven
    and the ANT task regarding the reverse engineering process? I.e. from the
    same user input parameters to produce exactly the same output - aka a nice
    and correctly generated datamap?
    - Cayenne Modeler already does this reverse engineering, so the
    functionality is practically already there?
    - the Maven and the ANT task would be than just a wrapper to call that
    functionality?
    - this would be than similar to the case of Cayenne ClassGeneration?

    If so, than wouldn't be the first step to refactor the actual Cayenne
    Modeler functionality(the already working) that already does reverse
    engineering to some common classes in:
    org.apache.cayenne.gen.*
    like it was done for ClassGeneration?
    to be simply callable from the Maven and ANT task, thus making them trivial
    to implement?

    Thank you,
    A.



    This archive was generated by hypermail 2.0.0 : Sat Apr 11 2009 - 05:45:44 EDT