You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by Martin Poeschl <mp...@marmot.at> on 2003/09/01 22:50:48 UTC

3.1 builds available

the torque 3.1 builds are available for download

http://db.apache.org/builds/torque/release/3.1/

i created a cvs branch TORQUE_3_1_BRANCH for bugfix releases

i'll wait for feedback before i send the annoucement .. so please give 
it a try and report all problems to the mailing lists

thanx!

martin


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Re: 3.1 builds available

Posted by Sgarlata Matt <sg...@bah.com>.
Doh!  So it was user error after all; sorry about that ;)  I had 
torque-3.0.jar in my classpath instead of torque-3.1.jar.  I was using 
the correct build-torque.xml.  I was always running directly off the 
.jar so torque.useClasspath probably didn't change anything, but it's 
good to know.

Maybe it would be beneficial to include upgrade instructions on the 
Torque page so you don't get bug reports like this one when people 
upgrade from 3.0.x -> 3.1?  I could provide the beginnings of the 
instructions if you would like.

If I run into anything else I'll post to torque-user.  Thanks again!

Matt

Martin Poeschl wrote:

> make sure torque-3.0.jar is not in your classpath
> make sure torque-gen-3.1.jar is in the classpath (for the generation)
> set torque.useClasspath = true to load the templates from the jar 
> instead of loading them from the filesystem
> upgrade the build-torque.xml
> 
> martin
> 
> Sgarlata Matt wrote:
> 
>> Martin Poeschl wrote:
>>
>>> could you please provide more information (property files ..
>>
>>
>>
>> Attached is my build.properties file.  Is there anything else you need?
>>
>> are you
>>
>>> using the torque package as it is it integrated in your project 
>>> evironment ...)
>>
>>
>>
>> I'm not sure what you mean.  I included torque-3.1.jar in my project 
>> environment (and not torque-gen-3.1.jar).  I don't think this is an 
>> integration issue though because the velocity variables (like $col) of 
>> course won't work in Java code and they are showing up.
>>
>>>
>>> thanx!
>>>
>>> martin
>>
>>
>>
>> Let me know if I you need anything else,
>>
>> Matt
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-dev-help@db.apache.org
> 

-- 
Matthew Sgarlata
Senior Consultant
Booz Allen Hamilton Inc.
Work: 703-377-0871
Fax: 703-902-3608


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Re: 3.1 builds available

Posted by Martin Poeschl <mp...@marmot.at>.
make sure torque-3.0.jar is not in your classpath
make sure torque-gen-3.1.jar is in the classpath (for the generation)
set torque.useClasspath = true to load the templates from the jar 
instead of loading them from the filesystem
upgrade the build-torque.xml

martin

Sgarlata Matt wrote:

> Martin Poeschl wrote:
>
>> could you please provide more information (property files ..
>
>
> Attached is my build.properties file.  Is there anything else you need?
>
> are you
>
>> using the torque package as it is it integrated in your project 
>> evironment ...)
>
>
> I'm not sure what you mean.  I included torque-3.1.jar in my project 
> environment (and not torque-gen-3.1.jar).  I don't think this is an 
> integration issue though because the velocity variables (like $col) of 
> course won't work in Java code and they are showing up.
>
>>
>> thanx!
>>
>> martin
>
>
> Let me know if I you need anything else,
>
> Matt




---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Re: 3.1 builds available

Posted by Sgarlata Matt <sg...@bah.com>.
Martin Poeschl wrote:

> could you please provide more information (property files ..

Attached is my build.properties file.  Is there anything else you need?

are you
> using the torque package as it is it integrated in your project 
> evironment ...)

I'm not sure what you mean.  I included torque-3.1.jar in my project 
environment (and not torque-gen-3.1.jar).  I don't think this is an 
integration issue though because the velocity variables (like $col) of 
course won't work in Java code and they are showing up.

> 
> thanx!
> 
> martin

Let me know if I you need anything else,

Matt

> 
> Sgarlata Matt wrote:
> 
>> Hi Martin, I just tried regenerating my object model using Torque 3.1 
>> instead of Torque 3.0.2 and I ran into a couple problems with the 
>> generated code.  For reference, my schema XML file is attached.  I am 
>> using Oracle 9 and running the generation on my Win 2k laptop.
>>
>> PROBLEM 1
>> =========
>> The BaseAcatLevel.copyInfo method is messed up.  It looks like 
>> $col.UncapitalisedJavaName was not initialized correctly in velocity.
>>
>>     protected AcatLevel copyInto(AcatLevel copyObj) throws 
>> TorqueException
>>     {
>>           copyObj.setShortDesc($col.UncapitalisedJavaName);
>>
>>                     copyObj.setShortDesc((String)null);
>>
>>
>>         return copyObj;
>>     }
>>
>> PROBLEM 2
>> =========
>> At the beginning of BaseAccessControl I have these weird declarations. 
>> I'm guessing $clo should be $col in some velocity file.
>>
>>     /** The value for the $clo field */
>>     private String $clo;
>>
>>     /** The value for the $clo field */
>>     private String $clo;
>>
>>     /** The value for the $clo field */
>>     private BigDecimal $clo;
>>
>>     /** The value for the $clo field */
>>     private Date $clo;
>>
>>
>>     /**
>>      * Get the UseridCd
>>      *
>>      * @return String
>>      */
>>     public String getUseridCd()
>>     {
>>         return $clo;
>>     }
>>
>> Thanks for all your hard work Martin!
>>
>> Matt
>>
>> Martin Poeschl wrote:
>>
>>> the torque 3.1 builds are available for download
>>>
>>> http://db.apache.org/builds/torque/release/3.1/
>>>
>>> i created a cvs branch TORQUE_3_1_BRANCH for bugfix releases
>>>
>>> i'll wait for feedback before i send the annoucement .. so please 
>>> give it a try and report all problems to the mailing lists
>>>
>>> thanx!
>>>
>>> martin
>>>
> 
> 

-- 
Matthew Sgarlata
Senior Consultant
Booz Allen Hamilton Inc.
Work: 703-377-0871
Fax: 703-902-3608

Re: 3.1 builds available

Posted by Martin Poeschl <mp...@marmot.at>.
could you please provide more information (property files .. are you 
using the torque package as it is it integrated in your project 
evironment ...)

thanx!

martin

Sgarlata Matt wrote:

> Hi Martin, I just tried regenerating my object model using Torque 3.1 
> instead of Torque 3.0.2 and I ran into a couple problems with the 
> generated code.  For reference, my schema XML file is attached.  I am 
> using Oracle 9 and running the generation on my Win 2k laptop.
>
> PROBLEM 1
> =========
> The BaseAcatLevel.copyInfo method is messed up.  It looks like 
> $col.UncapitalisedJavaName was not initialized correctly in velocity.
>
>     protected AcatLevel copyInto(AcatLevel copyObj) throws 
> TorqueException
>     {
>           copyObj.setShortDesc($col.UncapitalisedJavaName);
>
>                     copyObj.setShortDesc((String)null);
>
>
>         return copyObj;
>     }
>
> PROBLEM 2
> =========
> At the beginning of BaseAccessControl I have these weird declarations. 
> I'm guessing $clo should be $col in some velocity file.
>
>     /** The value for the $clo field */
>     private String $clo;
>
>     /** The value for the $clo field */
>     private String $clo;
>
>     /** The value for the $clo field */
>     private BigDecimal $clo;
>
>     /** The value for the $clo field */
>     private Date $clo;
>
>
>     /**
>      * Get the UseridCd
>      *
>      * @return String
>      */
>     public String getUseridCd()
>     {
>         return $clo;
>     }
>
> Thanks for all your hard work Martin!
>
> Matt
>
> Martin Poeschl wrote:
>
>> the torque 3.1 builds are available for download
>>
>> http://db.apache.org/builds/torque/release/3.1/
>>
>> i created a cvs branch TORQUE_3_1_BRANCH for bugfix releases
>>
>> i'll wait for feedback before i send the annoucement .. so please 
>> give it a try and report all problems to the mailing lists
>>
>> thanx!
>>
>> martin
>>



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Re: 3.1 builds available

Posted by Sgarlata Matt <sg...@bah.com>.
Hi Martin, I just tried regenerating my object model using Torque 3.1 
instead of Torque 3.0.2 and I ran into a couple problems with the 
generated code.  For reference, my schema XML file is attached.  I am 
using Oracle 9 and running the generation on my Win 2k laptop.

PROBLEM 1
=========
The BaseAcatLevel.copyInfo method is messed up.  It looks like 
$col.UncapitalisedJavaName was not initialized correctly in velocity.

     protected AcatLevel copyInto(AcatLevel copyObj) throws TorqueException
     {
           copyObj.setShortDesc($col.UncapitalisedJavaName);

                     copyObj.setShortDesc((String)null);


         return copyObj;
     }

PROBLEM 2
=========
At the beginning of BaseAccessControl I have these weird declarations. 
I'm guessing $clo should be $col in some velocity file.

     /** The value for the $clo field */
     private String $clo;

     /** The value for the $clo field */
     private String $clo;

     /** The value for the $clo field */
     private BigDecimal $clo;

     /** The value for the $clo field */
     private Date $clo;


     /**
      * Get the UseridCd
      *
      * @return String
      */
     public String getUseridCd()
     {
         return $clo;
     }

Thanks for all your hard work Martin!

Matt

Martin Poeschl wrote:

> the torque 3.1 builds are available for download
> 
> http://db.apache.org/builds/torque/release/3.1/
> 
> i created a cvs branch TORQUE_3_1_BRANCH for bugfix releases
> 
> i'll wait for feedback before i send the annoucement .. so please give 
> it a try and report all problems to the mailing lists
> 
> thanx!
> 
> martin
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-dev-help@db.apache.org
> 

-- 
Matthew Sgarlata
Senior Consultant
Booz Allen Hamilton Inc.
Work: 703-377-0871
Fax: 703-902-3608

Re: 3.1 builds available

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Ian Ragsdale wrote:
> Using the 3.1 build, when generating the om files, I get this error 
> (happened in rc1 as well):
> 
> Mon Sep 01 19:53:34 CDT 2003  [error] Error in evaluation of == 
> expression. Both arguments must be of the same Class. Currently left = 
> class java.lang.Boolean, right = class java.lang.String. 
> om/MapBuilder.vm [line 28, column 28] (ASTEQNode)
> 
> I was able to solve this problem by changing line 28 of MapBuilder.vm from:
> 
> #if ($generateDeprecated == "true")
> 
> to:
> 
> #if ($generateDeprecated == true)

Ian, thanks for the report.  I've committed the following change to CVS 
HEAD of db-torque:

Index: MapBuilder.vm
===================================================================
RCS file: /home/cvs/db-torque/src/generator/src/templates/om/MapBuilder.vm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -u -r1.3 -r1.4
--- MapBuilder.vm       7 Aug 2003 13:13:00 -0000       1.3
+++ MapBuilder.vm       3 Sep 2003 23:24:05 -0000       1.4
@@ -25,7 +25,7 @@
      public static final String CLASS_NAME =
          "${package}.map.${table.JavaName}MapBuilder";

-#if ($generateDeprecated == "true")
+#if ($generateDeprecated)
      /**
       * Item
       * @deprecated use ${table.JavaName}Peer.TABLE_NAME constant



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Re: 3.1 builds available

Posted by Ian Ragsdale <ia...@SKYLIST.net>.
Using the 3.1 build, when generating the om files, I get this error 
(happened in rc1 as well):

Mon Sep 01 19:53:34 CDT 2003  [error] Error in evaluation of == 
expression. Both arguments must be of the same Class. Currently left = 
class java.lang.Boolean, right = class java.lang.String. 
om/MapBuilder.vm [line 28, column 28] (ASTEQNode)

I was able to solve this problem by changing line 28 of MapBuilder.vm 
from:

#if ($generateDeprecated == "true")

to:

#if ($generateDeprecated == true)

Ian


On Monday, September 1, 2003, at 03:50  PM, Martin Poeschl wrote:

> the torque 3.1 builds are available for download
>
> http://db.apache.org/builds/torque/release/3.1/
>
> i created a cvs branch TORQUE_3_1_BRANCH for bugfix releases
>
> i'll wait for feedback before i send the annoucement .. so please give 
> it a try and report all problems to the mailing lists
>
> thanx!
>
> martin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-dev-help@db.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org