Hi,
I have two database connections set up for my application. However I'm
unable to perform any updates whenever I use the non-default database
resource.
However the selects work fine.
The code that I have is
Connection conn = Torque.getConnection("NonDefault");
Criteria crit = new Criteria();
... add some condition to the criteria....
List list = ABCPeer.doSelect(crit,conn);
Iterator i = list.iterator();
while(i.hasNext){
ABC abc = (ABC)i.next();
abc.setStatus("updated");
abc.save(conn);
}
In the above code sample the select happens but the updates dont.
I don't get any errors but when I query the database I see its still
unchanged.
Can anyone help me with this???
Thanks
TS
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>