[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

copyObject()




Hi,

i'm trying to use the copyObject() for clone a
persistent object.
I tried to change the 'simple' example in this way:

....

Auto dadix = (Auto) db.copyObject( auto );
dadix.setAge( new Integer(916));
dadix.print();
auto.print();
....

The output is:
Auto: Ford,916 (dadix)
Auto: Ford,916 (auto)

The object still be the same. There i did something
wrong? or there is a bug?

Davide
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com