This one time, at band camp, Smartifacts said:

S>Now all my objects implement org.exolab.castor.jdo.Timestampable
S>But I still get the same exception.
S>java.lang.IllegalArgumentException: A master object that involves in a long
S>transaction must be a TimeStampable!
S>I changed cache-type to unlimited in mapping.xml. It didn't work. Infact I
S>tried all combinations.
S>I have generated the source files using castor-source generator. It has
S>generated many other files other than the actual object. Anyway I made all
S>those classes implement  org.exolab.castor.jdo.Timestampable.
S>What could be the problem?
S>
S>I am using the following code:
S>
S>private long _timeStamp;
S>
S>public long jdoGetTimeStamp()
S>{
S>    return _timeStamp;
S>}
S>
S>public void jdoSetTimeStamp( long timeStamp )
S>{
S>    _timeStamp = timeStamp;
S>}
S>
S>And this is the actual update function code:
S>
S>public void updateRecord(){
S>    try{
S>        db = jdo.getDatabase();
S>        /////////
S>        db.begin();
S>        String id="3";
S>        Test_table x = (Test_table)db.load(Test_table.class, id );
S>        db.commit();
S>        /////////
S>        x.setId("2");
S>        db.setAutoStore(true);
S>        db.begin();
S>        db.update(x);
S>        db.commit();
S>        //////////
S>       db.close();
S>    }
S>    catch(Exception e){
S>        e.printStackTrace();
S>    }
S>}

Veeru,

Can you post the code for the Test_table object? It seems that it's not
recognized as TimeStampable. Also post the full client code and the mapping
descriptor. 

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