Hello
I get ObjectModifiedException at db.commit when executing the following code:
db.begin();
OQL Query oql = db.getOQLQuery( "SELECT pf FROM ProduktFamilie pf ORDER BY pf.kurz" );
QueryResults results = oql.execute();
ProduktFamilie pfam;
while ( results.hasMore() )
{
pfam = ( ProduktFamilie ) results.next();
pfam.setText(pfam.getText() + "x");
}
db.commit();
db.close();
Is there anything wrong with this code?
What can be the reason for the exception?
Hope someone can help me with this
Ralf Joachim
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev