Discussion:
[Middlegen-user] run the middlegen GUI?
DI LEMBO
2004-08-26 17:00:20 UTC
Permalink
Hi
How can I run the middlegen GUI?
And is it usefull for configuring middlegen task with an MS ACCESS schema?
I have a MS Access schema and I want to generate the metadata for XDoclet
parsing for hibernate...
Quite hard with hibernate and middlegen documentation.
Please help me!
M.-Leander Reimer
2004-08-27 02:48:08 UTC
Permalink
Hi,

the Middlegen ant task has a gui attribute, set this to true and the GUI
will show. If you place a build.properties under the samples/ dir of the
Middlegen distribution and put "gui=true" into it the same will happen.

I never used the GUI too much, neither have I used the Hibernate stuff
from Middlegen, so I can't help you on this.


Leander
Post by DI LEMBO
Hi
How can I run the middlegen GUI?
And is it usefull for configuring middlegen task with an MS ACCESS schema?
I have a MS Access schema and I want to generate the metadata for XDoclet
parsing for hibernate...
Quite hard with hibernate and middlegen documentation.
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
https://lists.sourceforge.net/lists/listinfo/middlegen-user
DI LEMBO
2004-08-27 16:40:51 UTC
Permalink
I got thi error using middlegen and a MS Access schema
It looks like the driver jdbc odbc doesn't support the feature below
described....
Any idea? Should I change the MS Access Driver ...and where can I find it?
....
[middlegen] (middlegen.Middlegen 352 ) Registering plugin
jsp->middlegen.plugins.str
uts.JspPlugin
[middlegen] Database URL:jdbc:odbc:db
[middlegen] No <table> elements specified. Reading all tables. This might
take a while...
[middlegen] (middlegen.MiddlegenPopulator 204 ) [Microsoft][Driver
ODBC Microsoft Access]Optional feature not
implemented
[middlegen] java.sql.SQLException: [Microsoft][Driver ODBC Microsoft
Access]Caratteristica opzionale
non implementata
[middlegen] at
sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
[middlegen] at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
[middlegen] at sun.jdbc.odbc.JdbcOdbc.SQLTables(JdbcOdbc.java:5519)
[middlegen] at
sun.jdbc.odbc.JdbcOdbcDatabaseMetaData.getTables(JdbcOdbcDatabaseMetaData.ja
va:23
95)
[middlegen] at
middlegen.MiddlegenPopulator.addRegularTableElements(MiddlegenPopulator.java
:142)

[middlegen] at middlegen.MiddlegenTask.execute(MiddlegenTask.java:401)
[middlegen] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[middlegen] at org.apache.tools.ant.Task.perform(Task.java:364)
[middlegen] at org.apache.tools.ant.Target.execute(Target.java:341)
[middlegen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[middlegen] at
org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[middlegen] at
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[middlegen] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[middlegen] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[middlegen] at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[middlegen] at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

BUILD FAILED
C:\middlegen-2.0\samples\build.xml:200: middlegen.MiddlegenException:
Couldn't get list of tables fr
om database. Probably a JDBC driver problem.
Configured schema:
Configured catalog:
?? Couldn't get schemas ??
Available catalogs:

----- Original Message -----
From: "M.-Leander Reimer" <***@techdivision.com>
To: <middlegen-***@lists.sourceforge.net>
Sent: Friday, August 27, 2004 6:48 AM
Subject: Re: [Middlegen-user] run the middlegen GUI?
Post by M.-Leander Reimer
Hi,
the Middlegen ant task has a gui attribute, set this to true and the GUI
will show. If you place a build.properties under the samples/ dir of the
Middlegen distribution and put "gui=true" into it the same will happen.
I never used the GUI too much, neither have I used the Hibernate stuff
from Middlegen, so I can't help you on this.
Leander
Post by DI LEMBO
Hi
How can I run the middlegen GUI?
And is it usefull for configuring middlegen task with an MS ACCESS schema?
I have a MS Access schema and I want to generate the metadata for XDoclet
parsing for hibernate...
Quite hard with hibernate and middlegen documentation.
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
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
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Eivind Waaler
2004-08-27 11:37:03 UTC
Permalink
Post by DI LEMBO
Hi
How can I run the middlegen GUI?
Specify gui=true in ant task, properties file or command line (ant
-Dgui=true middlegen).
Post by DI LEMBO
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.
Post by DI LEMBO
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.
Post by DI LEMBO
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
Post by DI LEMBO
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
https://lists.sourceforge.net/lists/listinfo/middlegen-user
DI LEMBO
2004-08-27 17:10:13 UTC
Permalink
I have problem using middlegen with MS Access.
Actually the jdcbOdbc driver doesn't not support some features.
I wonder if exists anothe MS Access compliant driver to use for middlegen
metacode generation.
Any idea?
Ciao
DI LEMBO
2004-08-28 05:41:06 UTC
Permalink
Hi all
If I use mySql, Can I fing no-fee jdbc drivers?
With MS Access I have to pay.Anf JdbcOdbc driver doesn't support all otional
feature for running ant middlegen with a MS Access.
Any help?
Ciao
Russell Simpkins
2004-08-28 11:18:37 UTC
Permalink
Yes. You can get it from www.mysql.com

-----Original Message-----
From: middlegen-user-***@lists.sourceforge.net
[mailto:middlegen-user-***@lists.sourceforge.net] On Behalf Of DI
LEMBO
Sent: Saturday, August 28, 2004 3:42 AM
To: middlegen-***@lists.sourceforge.net
Subject: [Middlegen-user] no-fee MYSQL jdbc driver

Hi all
If I use mySql, Can I fing no-fee jdbc drivers?
With MS Access I have to pay.Anf JdbcOdbc driver doesn't support all
otional
feature for running ant middlegen with a MS Access.
Any help?
Ciao



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
DI LEMBO
2004-08-28 15:13:05 UTC
Permalink
sorry but i need a no-fee MS Access driver.please help me

----- Original Message -----
From: "Russell Simpkins" <***@hotmail.com>
To: <middlegen-***@lists.sourceforge.net>
Sent: Saturday, August 28, 2004 3:11 PM
Subject: RE: [Middlegen-user] no-fee MYSQL jdbc driver
Post by Russell Simpkins
Yes. You can get it from www.mysql.com
-----Original Message-----
LEMBO
Sent: Saturday, August 28, 2004 3:42 AM
Subject: [Middlegen-user] no-fee MYSQL jdbc driver
Hi all
If I use mySql, Can I fing no-fee jdbc drivers?
With MS Access I have to pay.Anf JdbcOdbc driver doesn't support all
otional
feature for running ant middlegen with a MS Access.
Any help?
Ciao
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Eivind Waaler
2004-08-29 12:51:35 UTC
Permalink
This is really not the right mailing list for searching after jdbc
drivers.

Try searching google, sourceforge, freshmeat etc. Or try asking MS about
it..

Cheers
.eivind
Post by DI LEMBO
sorry but i need a no-fee MS Access driver.please help me
----- Original Message -----
Sent: Saturday, August 28, 2004 3:11 PM
Subject: RE: [Middlegen-user] no-fee MYSQL jdbc driver
Post by Russell Simpkins
Yes. You can get it from www.mysql.com
-----Original Message-----
LEMBO
Sent: Saturday, August 28, 2004 3:42 AM
Subject: [Middlegen-user] no-fee MYSQL jdbc driver
Hi all
If I use mySql, Can I fing no-fee jdbc drivers?
With MS Access I have to pay.Anf JdbcOdbc driver doesn't support all
otional
feature for running ant middlegen with a MS Access.
Any help?
Ciao
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Loading...