On Thu, 26 Aug 2004, DI LEMBO wrote:

> Hi
> How can I run the middlegen GUI?

Specify gui=true in ant task, properties file or command line (ant
-Dgui=true middlegen).

> And is it usefull for configuring middlegen task with an MS ACCESS schema?

As long as MS Access has a working JDBC driver it should work. I have no
idea if it does, probably..

The jar file for the driver must be in classpath. Then you can provide
connection details in the <middlegen> ant task:

<middlegen
        appname="${name}"
        prefsdir="${src.dir}"
        gui="${gui}"
        databaseurl="${database.url}"
        initialContextFactory="${java.naming.factory.initial}"
        providerURL="${java.naming.provider.url}"
        datasourceJNDIName="${datasource.jndi.name}"
        driver="${database.driver}"
        username="${database.userid}"
        password="${database.password}"
        schema="${database.schema}"
        catalog="${database.catalog}"
        includeViews="false"
>

In the samples this is done by using external jdbc xml files. Take a look
at mysql.xml for an example.

> I have a MS Access schema and I want to generate the metadata for XDoclet
> parsing for hibernate...

You don't need XDoclet when working with Middlegen/Hibernate. Middlegen
generates the XML mapping files, from there you run the hbm2java task to
generate the classes.

> Quite hard with hibernate and middlegen documentation.

True, please let me know if you work out the Access stuff and I'll put the
info out somewhere.

Cheers
.eivind

> Please help me!
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> middlegen-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/middlegen-user
>
>


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
middlegen-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/middlegen-user

Reply via email to