I'm trying to insert the object that's on the M side of the 1:M relation. 
I'm doing it this way:
db = jdo.getDatabase();
db.begin();
c = (OneSideObject)db.load(OneSideObject.class, new Integer(osoID));
itemsCount = c.getItems().size(); //these are lazy loaded, but I can check the 
size
someNumber = c.getSomeNumber();
item.setOneSideObject(c);
//c.setLastUpdate(new Date());  <--- Castor hangs if I uncomment this
db.create(item);
db.commit();
db.close();

If I run it this way everything is alright, but if I uncomment the line where I 
update the OneSideObject object, castor Waits for that object, like:

[org.exolab.castor.persist.ObjectLock] - Waiting on OneSideObject/2/2 R/- by 
[EMAIL PROTECTED]


Regards,
Emir



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

Reply via email to