[DB Torque Wiki] Updated: GettingTorqueToWork
Date: 2004-10-27T21:13:25 Editor: DavinAtkins <[EMAIL PROTECTED]> Wiki: DB Torque Wiki Page: GettingTorqueToWork URL: http://wiki.apache.org/db-torque/GettingTorqueToWork more descriptive explaination for jdbc-2.0.jar and jndi-1.2.2.jar Change Log: -- @@ -218,7 +218,7 @@ 1. When you install Maven, don't forget to set the environment variable MAVEN_HOME to the appropriate directory and to add the maven binary directory to the environment variable PATH. - 2. If/when Maven complains about not being able to download jdbc-2.0.jar and jndi-1.2.1.jar you will need to download these manually and install them in your local Maven repository. jndi-1_2_1.zip is available from http://java.sun.com/products/jndi/downloads/ - copy the file lib/jndi.jar into the directory .maven/repository/jndi/jars in your home diretory and rename it to jndi-1.2.1.jar. Do same for other jars. + 2. If/when Maven complains about not being able to download jdbc-2.0.jar and jndi-1.2.1.jar you will need to download these manually and install them in your local Maven repository due to licensing. jdbc-2.0 is available at http://java.sun.com/products/jdbc/download.html under the file name jdbc2_0-stdext.jar (click on the download link for JDBC 2.0 Optional Package Binary to get it). Download it, rename it to jdbc-2.0.jar and put it into the .maven/repository/jdbc/jars in your home directory. jndi-1_2_1.zip is available from http://java.sun.com/products/jndi/downloads/ (click the download link for Download JNDI 1.2.1 & More to get to it) - copy the file lib/jndi.jar into the directory .maven/repository/jndi/jars in your home diretory and rename it to jndi-1.2.1.jar. Do same for other jars. -- Thomas Fischer (with major edits by ScottEade) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[DB Torque Wiki] Updated: FrontPage
Date: 2004-10-27T16:34:56 Editor: ScottEade <[EMAIL PROTECTED]> Wiki: DB Torque Wiki Page: FrontPage URL: http://wiki.apache.org/db-torque/FrontPage The new download page is fairly obvious. Change Log: -- @@ -11,7 +11,6 @@ = Documentation = - * DownloadingTorque - How to get Torque. * GettingTorqueToWork - An ever-growing list of typical problems and solutions to help people just getting started with Torque. * FrequentlyAskedQuestions * HarderTorqueFaq - Additional FAQ entries covering some of the more complex aspects of Torque. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Nightly snapshots for Torque
As there didn't seem to be any nightly snapshots for Torque, I took the liberty and set up a Nighty snapshots run for Torque just as I did for Turbine. These are located under http://cvs.apache.org/dist/db/torque/nightly/ for the torque-3.1 and torque-3.2 trees. These snapshots are only built when the source repository changes. Regards Henning -- Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH [EMAIL PROTECTED]+49 9131 50 654 0 http://www.intermeta.de/ RedHat Certified Engineer -- Jakarta Turbine Development -- hero for hire Linux, Java, perl, Solaris -- Consulting, Training, Development "Fighting for one's political stand is an honorable action, but re- fusing to acknowledge that there might be weaknesses in one's position - in order to identify them so that they can be remedied - is a large enough problem with the Open Source movement that it deserves to be on this list of the top five problems." -- Michelle Levesque, "Fundamental Issues with Open Source Software Development" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: db-torque/xdocs download.xml
henning 2004/10/27 07:29:29 Modified:xdocsTag: TORQUE_3_1_BRANCH download.xml Log: Add the jars to the download page Revision ChangesPath No revision No revision 1.1.2.3 +17 -7 db-torque/xdocs/Attic/download.xml Index: download.xml === RCS file: /home/cvs/db-torque/xdocs/Attic/download.xml,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -r1.1.2.2 -r1.1.2.3 --- download.xml 27 Oct 2004 14:25:43 - 1.1.2.2 +++ download.xml 27 Oct 2004 14:29:29 - 1.1.2.3 @@ -43,8 +43,24 @@ Maven Plugin - http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1.1/";>Torque 3.1.1 + http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1.1/";>Torque 3.1.1 + http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1.1/binaries/torque-3.1.1.jar";>JAR + http://www.apache.org/dist/db/torque/torque-3.1.1/binaries/torque-3.1.1.jar.asc";>Signature + http://www.apache.org/dist/db/torque/torque-3.1.1/binaries/torque-3.1.1.jar.md5";>MD5 + + http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1.1/binaries/torque-gen-3.1.1.jar";>JAR + http://www.apache.org/dist/db/torque/torque-3.1.1/binaries/torque-gen-3.1.1.jar.asc";>Signature + http://www.apache.org/dist/db/torque/torque-3.1.1/binaries/torque-gen-3.1.1.jar.md5";>MD5 + + + http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1.1/binaries/maven-torque-plugin-3.1.1.jar";>JAR + http://www.apache.org/dist/db/torque/torque-3.1.1/binaries/maven-torque-plugin-3.1.1.jar.asc";>Signature + http://www.apache.org/dist/db/torque/torque-3.1.1/binaries/maven-torque-plugin-3.1.1.jar.md5";>MD5 + + + + http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1.1/binaries/torque-3.1.1.tar.gz";>TAR http://www.apache.org/dist/db/torque/torque-3.1.1/binaries/torque-3.1.1.tar.gz.asc";>Signature http://www.apache.org/dist/db/torque/torque-3.1.1/binaries/torque-3.1.1.tar.gz.md5";>MD5 @@ -52,12 +68,6 @@ http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1.1/binaries/torque-gen-3.1.1.tar.gz";>TAR http://www.apache.org/dist/db/torque/torque-3.1.1/binaries/torque-gen-3.1.1.tar.gz.asc";>Signature http://www.apache.org/dist/db/torque/torque-3.1.1/binaries/torque-gen-3.1.1.tar.gz.md5";>MD5 - - - http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1.1/binaries/maven-torque-plugin-3.1.1.jar";>JAR - http://www.apache.org/dist/db/torque/torque-3.1.1/binaries/maven-torque-plugin-3.1.1.jar.asc";>Signature - http://www.apache.org/dist/db/torque/torque-3.1.1/binaries/maven-torque-plugin-3.1.1.jar.md5";>MD5 - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: db-torque/xdocs download.xml
henning 2004/10/27 07:25:43 Modified:xdocsTag: TORQUE_3_1_BRANCH download.xml Log: Oh, if I could only write "ZIP"... Revision ChangesPath No revision No revision 1.1.2.2 +8 -8 db-torque/xdocs/Attic/download.xml Index: download.xml === RCS file: /home/cvs/db-torque/xdocs/Attic/download.xml,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- download.xml 27 Oct 2004 10:16:06 - 1.1.2.1 +++ download.xml 27 Oct 2004 14:25:43 - 1.1.2.2 @@ -61,11 +61,11 @@ - http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1.1/binaries/torque-3.1.1.zip";>TAR + http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1.1/binaries/torque-3.1.1.zip";>ZIP http://www.apache.org/dist/db/torque/torque-3.1.1/binaries/torque-3.1.1.zip.asc";>Signature http://www.apache.org/dist/db/torque/torque-3.1.1/binaries/torque-3.1.1.zip.md5";>MD5 - http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1.1/binaries/torque-gen-3.1.1.zip";>TAR + http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1.1/binaries/torque-gen-3.1.1.zip";>ZIP http://www.apache.org/dist/db/torque/torque-3.1.1/binaries/torque-gen-3.1.1.zip.asc";>Signature http://www.apache.org/dist/db/torque/torque-3.1.1/binaries/torque-gen-3.1.1.zip.md5";>MD5 @@ -84,11 +84,11 @@ not available - http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1/binaries/torque-3.1.zip";>TAR + http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1/binaries/torque-3.1.zip";>ZIP http://www.apache.org/dist/db/torque/torque-3.1/binaries/torque-3.1.zip.asc";>Signature http://www.apache.org/dist/db/torque/torque-3.1/binaries/torque-3.1.zip.md5";>MD5 - http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1/binaries/torque-gen-3.1.zip";>TAR + http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1/binaries/torque-gen-3.1.zip";>ZIP http://www.apache.org/dist/db/torque/torque-3.1/binaries/torque-gen-3.1.zip.asc";>Signature http://www.apache.org/dist/db/torque/torque-3.1/binaries/torque-gen-3.1.zip.md5";>MD5 @@ -122,11 +122,11 @@ http://www.apache.org/dist/db/torque/torque-3.1.1/source/maven-torque-plugin-3.1.1-src.tar.gz.md5";>MD5 - http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1.1/source/torque-3.1.1-src.zip";>TAR + http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1.1/source/torque-3.1.1-src.zip";>ZIP http://www.apache.org/dist/db/torque/torque-3.1.1/source/torque-3.1.1-src.zip.asc";>Signature http://www.apache.org/dist/db/torque/torque-3.1.1/source/torque-3.1.1-src.zip.md5";>MD5 - http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1.1/source/torque-gen-3.1.1-src.zip";>TAR + http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1.1/source/torque-gen-3.1.1-src.zip";>ZIP http://www.apache.org/dist/db/torque/torque-3.1.1/source/torque-gen-3.1.1-src.zip.asc";>Signature http://www.apache.org/dist/db/torque/torque-3.1.1/source/torque-gen-3.1.1-src.zip.md5";>MD5 @@ -149,11 +149,11 @@ not available - http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1/source/torque-3.1-src.zip";>TAR + http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1/source/torque-3.1-src.zip";>ZIP http://www.apache.org/dist/db/torque/torque-3.1/source/torque-3.1-src.zip.asc";>Signature http://www.apache.org/dist/db/torque/torque-3.1/source/torque-3.1-src.zip.md5";>MD5 - http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1/source/torque-gen-3.1-src.zip";>TAR + http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1/source/torque-gen-3.1-src.zip";>ZIP http://www.apache.org/dist/db/torque/torque-3.1/source/torque-gen-3.1-src.zip.asc";>Signature http://www.apache.org/dist/db/torque/torque-3.1/source/torque-gen-3.1-src.zip.md5";>MD5 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: db-torque/src/generator maven.xml
henning 2004/10/27 07:24:50 Modified:.Tag: TORQUE_3_1_BRANCH maven.xml src/generator Tag: TORQUE_3_1_BRANCH maven.xml Log: dist code seems no longer necessary for Maven 1.0. In fact, the dist goals don't build under Maven 1.0 with this code. Revision ChangesPath No revision No revision 1.20.2.3 +1 -72 db-torque/maven.xml Index: maven.xml === RCS file: /home/cvs/db-torque/maven.xml,v retrieving revision 1.20.2.2 retrieving revision 1.20.2.3 diff -u -r1.20.2.2 -r1.20.2.3 --- maven.xml 25 Aug 2004 01:05:59 - 1.20.2.2 +++ maven.xml 27 Oct 2004 14:24:49 - 1.20.2.3 @@ -37,77 +37,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
cvs commit: db-torque project-base.xml
henning 2004/10/27 07:23:38 Modified:.Tag: TORQUE_3_1_BRANCH project-base.xml Log: Version 3.1.2-dev Revision ChangesPath No revision No revision 1.9.2.10 +1 -1 db-torque/project-base.xml Index: project-base.xml === RCS file: /home/cvs/db-torque/project-base.xml,v retrieving revision 1.9.2.9 retrieving revision 1.9.2.10 diff -u -r1.9.2.9 -r1.9.2.10 --- project-base.xml 26 Oct 2004 11:55:19 - 1.9.2.9 +++ project-base.xml 27 Oct 2004 14:23:38 - 1.9.2.10 @@ -21,7 +21,7 @@ 3 torque Torque - 3.1.1 + 3.1.2-dev Apache Software Foundation http://db.apache.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[DB Torque Wiki] Updated: HarderTorqueFaq
Date: 2004-10-27T05:40:03 Editor: HansHülf <[EMAIL PROTECTED]> Wiki: DB Torque Wiki Page: HarderTorqueFaq URL: http://wiki.apache.org/db-torque/HarderTorqueFaq no comment Change Log: -- @@ -170,7 +170,7 @@ There is a simple solution for creating all the BeanInfo classes for all Tables without too much overhead. -First, create an abstract base class. This base class constructs the property descriptor array from the getFields() method. The getTheClass() method provides the class of your concrete Table class derived from BaseObject. +First, create an abstract base class. This base class constructs the property descriptor array from the 'getFields()' method. The method 'getTheClass()' provides the class of your concrete Table class derived from BaseObject. {{{ @@ -184,10 +184,10 @@ */ public abstract class TorqueBeanInfo extends SimpleBeanInfo { - abstract protected Class getTheClass(); - abstract protected Collection getFields(); +abstract protected Class getTheClass(); +abstract protected Collection getFields(); - public PropertyDescriptor[] getPropertyDescriptors() +public PropertyDescriptor[] getPropertyDescriptors() { try { PropertyDescriptor[] pdar = new PropertyDescriptor[getFields().size()]; @@ -196,7 +196,7 @@ String field = (String) it.next(); PropertyDescriptor pd = new PropertyDescriptor(field, getTheClass()); pdar[i]=pd; - } + } return pdar; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[DB Torque Wiki] Updated: HarderTorqueFaq
Date: 2004-10-27T05:35:59 Editor: HansHülf <[EMAIL PROTECTED]> Wiki: DB Torque Wiki Page: HarderTorqueFaq URL: http://wiki.apache.org/db-torque/HarderTorqueFaq no comment Change Log: -- @@ -193,7 +193,7 @@ PropertyDescriptor[] pdar = new PropertyDescriptor[getFields().size()]; Iterator it = getFields().iterator(); for (int i = 0; it.hasNext(); i++) { - String field = (String) it.next(); + String field = (String) it.next(); PropertyDescriptor pd = new PropertyDescriptor(field, getTheClass()); pdar[i]=pd; } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[DB Torque Wiki] Updated: HarderTorqueFaq
Date: 2004-10-27T05:33:17 Editor: HansHülf <[EMAIL PROTECTED]> Wiki: DB Torque Wiki Page: HarderTorqueFaq URL: http://wiki.apache.org/db-torque/HarderTorqueFaq This is my first entry in a Wiki of this kind. Sorry if I did something 'wrong'. Change Log: -- @@ -168,3 +168,68 @@ RaphaelMankin +There is a simple solution for creating all the BeanInfo classes for all Tables without too much overhead. + +First, create an abstract base class. This base class constructs the property descriptor array from the getFields() method. The getTheClass() method provides the class of your concrete Table class derived from BaseObject. + +{{{ + +package com.gsk.pmf; + +import java.beans.*; +import java.util.*; + +/** + * @author Hans Hülf + */ +public abstract class TorqueBeanInfo extends SimpleBeanInfo { + + abstract protected Class getTheClass(); + abstract protected Collection getFields(); + + public PropertyDescriptor[] getPropertyDescriptors() +{ +try { + PropertyDescriptor[] pdar = new PropertyDescriptor[getFields().size()]; + Iterator it = getFields().iterator(); + for (int i = 0; it.hasNext(); i++) { + String field = (String) it.next(); + PropertyDescriptor pd = new PropertyDescriptor(field, getTheClass()); + pdar[i]=pd; + } + + return pdar; + +} catch (IntrospectionException e) { +System.err.println("IntrospectionException"+e.getMessage()); +e.printStackTrace(); +} +return null; +} + +} +}}} + +Then you only have to subclass once for every BaseObject class you have. In this example the above XML created a class called Modelevent (extends BaseModelevent (extends BaseObject)). + +{{{ + +package com.gsk.pmf; + +import java.util.*; +/** + * @author Hans Hülf + */ +public class ModeleventBeanInfo extends TorqueBeanInfo { + protected Class getTheClass() { + return Modelevent.class; + } + protected Collection getFields(){ + return Modelevent.getFieldNames(); + } +} +}}} + +The advantage of this method is that you don't have to change the BeanInfo classes after the Table classes have changed. Only if you add new Tables you have to provide a new BeanInfo class. + +HansHülf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANNOUNCE] DB Torque 3.1.1 available
The DB Torque team is pleased to announce the release of DB Torque Version 3.1.1, a maintenance release of the DB Torque 3.1 branch. Main new feature of this version is the first official release of the maven-torque-plugin which allows Java and SQL source code creation with Torque through integration with Apache Maven. The release is primarily available through our download page at http://db.apache.org/torque-31/download.html Apache Mirror System http://www.apache.org/dyn/closer.cgi/db/torque/torque-3.1.1 or http://www.apache.org/dist/db/torque/torque-3.1.1 (until the mirrors are synced) Maven repository http://www.ibiblio.org/maven/torque/ http://www.apache.org/dist/java-repository/torque/ Dependencies: torque torque 3.1.1 http://db.apache.org/torque/torque-3.1/download.html jar torque torque-gen 3.1.1 http://db.apache.org/torque/torque-3.1/download.html jar torque maven-torque-plugin 3.1.1 http://db.apache.org/torque/torque-3.1/download.html plugin The DB Torque Team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: db-torque/xdocs download.xml navigation.xml status.xml
henning 2004/10/27 03:16:06 Modified:.Tag: TORQUE_3_1_BRANCH build.xml src/generator Tag: TORQUE_3_1_BRANCH build.xml src/generator/src/conf Tag: TORQUE_3_1_BRANCH build-torque.xml xdocsTag: TORQUE_3_1_BRANCH navigation.xml status.xml Added: xdocsTag: TORQUE_3_1_BRANCH download.xml Log: - Update ant builds to 3.1.1 (makes gump happy) - add a download page Revision ChangesPath No revision No revision 1.57.2.2 +5 -5 db-torque/Attic/build.xml Index: build.xml === RCS file: /home/cvs/db-torque/Attic/build.xml,v retrieving revision 1.57.2.1 retrieving revision 1.57.2.2 diff -u -r1.57.2.1 -r1.57.2.2 --- build.xml 16 Oct 2004 12:31:38 - 1.57.2.1 +++ build.xml 27 Oct 2004 10:16:05 - 1.57.2.2 @@ -1,7 +1,7 @@ - + @@ -20,7 +20,7 @@ - + @@ -130,7 +130,7 @@ - + @@ -183,4 +183,4 @@ - \ No newline at end of file + No revision No revision 1.1.2.2 +4 -4 db-torque/src/generator/Attic/build.xml Index: build.xml === RCS file: /home/cvs/db-torque/src/generator/Attic/build.xml,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- build.xml 16 Oct 2004 12:31:38 - 1.1.2.1 +++ build.xml 27 Oct 2004 10:16:05 - 1.1.2.2 @@ -1,7 +1,7 @@ - + @@ -20,7 +20,7 @@ - + @@ -130,7 +130,7 @@ - + No revision No revision 1.8.2.9 +1 -1 db-torque/src/generator/src/conf/build-torque.xml Index: build-torque.xml === RCS file: /home/cvs/db-torque/src/generator/src/conf/build-torque.xml,v retrieving revision 1.8.2.8 retrieving revision 1.8.2.9 diff -u -r1.8.2.8 -r1.8.2.9 --- build-torque.xml 16 Oct 2004 12:34:30 - 1.8.2.8 +++ build-torque.xml 27 Oct 2004 10:16:05 - 1.8.2.9 @@ -22,7 +22,7 @@ - +