This one time, at band camp, Thomas Louis said:

TL>// iterate them
TL>while (itor.hasNext()) {
TL>  xmlProduct = (Product)itor.next();
TL>  db.begin();
TL>  db.update(xmlProduct);
TL>  db.commit();
TL>}
TL>
TL>Why does castor abort with
TL>
TL>java.lang.IllegalArgumentException: A master object that involves in a
TL>long transaction must be a TimeStampable!
TL>
TL>I either have any dependent objects nor a long transaction. Wrong?
TL>Product has got Collections of other Objects, but these are not declared
TL>dependent in the mapping file.

Thomas,

The update() method is only for use in long transactions. To change
an object and make it persistent again, simply commit() the changes
that were made in the transaction. There is no need to call update()
to change an object.

Here is some info on long transactions and the use of update():

    http://castor.exolab.org/long-transact.html

Bruce
--

perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to