DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6962>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6962

Needed to change something in BasePeerin order to get turbine working

           Summary: Needed to change something in BasePeerin order to get
                    turbine working
           Product: Turbine
           Version: 2.1 final
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Torque
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi everybody,
we are using turbine and torque for database access. I wanted to write some 
objects to the database by instantiating DBXxxx, calling the set method and 
then do DBXxxx.save().
There were two problems with that:
Firstly I need to give the dbconnection directly by save(dbconn) and I think 
this should not be necessary.
Secondly I needed to change a line in BasePeer
was:                         .getIdAsBigDecimal(dbCon.getConnection(), 
keyInfo) );
is:                        .getIdAsBigDecimal(dbCon.getConnection(), 
tableName) );
It is lin 788 in Rev 1.5
I found that the method getIdAsBigDecimal wants a tableName as Parameter, not 
a keyInfo, so I tried it - and it worked.
Hope this helps in improving your product!
Stefan

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

Reply via email to