Your question calls the rest of the types included in this list into
question as well.  John, will you explain?


Shaun Campbell <[EMAIL PROTECTED]> writes:

> I think the error is in
> org.apache.turbine.torque.engine.database.model.column.java.
> 
> Should short NOT be included in the if statement in the method below so that
> vmethod is left as asShort()?
> 
>     public String getVillageMethod()
>     {
>         String vmethod = TypeMap.getVillageMethod(torqueType);
>         String jtype = TypeMap.getJavaNative(torqueType); 
>         if ( isPrimaryKey() || isForeignKey() ) 
>         {
>             if ( jtype.equals("short")
>                  || jtype.equals("int") 
>                  || jtype.equals("long") 
>                  || jtype.equals("byte") 
>                  || jtype.equals("float") 
>                  || jtype.equals("double") ) 
>             {
>                 vmethod = "asBigDecimal()";
>             }
>         }
>         return vmethod;
>     }

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to