You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by bu...@apache.org on 2002/03/07 17:37:37 UTC

DO NOT REPLY [Bug 6962] New: - Needed to change something in BasePeerin order to get turbine working

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: turbine-dev@jakarta.apache.org
        ReportedBy: skuhn@ice.mpg.de


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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>