Re: command line mapping generation

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Mar 14 2008 - 12:00:24 EDT

  • Next message: Andrus Adamchik: "Re: ExtendedEnumeration comments"

    You are on the right track. You can write a simple Java tool (or an
    Ant task) based on DbLoader class. Then use
    DataMap.encodeAsXML(XMLEncoder) to store the result in an XML file.

    Andrus

    On Mar 14, 2008, at 5:49 PM, Tomi N/A wrote:

    > I would like to be able to generate database mappings from the
    > command line.
    > I have glimpsed into DbLoader source as a first step (and have
    > questions about it), but would like to hear your opinions about how
    > this should be done (there was some talk of it on the users list).
    >
    > The use case would be using the GUI to set up everything (classpaths,
    > DataSources etc.) and _then_ use the command line refering to existing
    > data sources.
    > Even better, it would be great if I could bypass it completely and
    > just specify the jdbc driver class and the database connection string
    > and generate a mapping with most of the parameters you can now set
    > from the GUI.
    >
    > Cheers,
    > Tomislav
    >



    This archive was generated by hypermail 2.0.0 : Fri Mar 14 2008 - 12:00:56 EDT