Hello guys, We are having troubles to write to the db nested objects (an object of a class A has an attribute that refers to another class B). In our case, these nested objects have to be independant. A very similar case is the example from Castor of a class 'Product' having an attribute '_group' pointing to another class 'ProductGroup'. This example works fine provided that you satisfy these 2 conditions:
1- an instance of 'ProductGroup' is first written then an instance of 'Product' is written to the db with the correct value for the field '_group' 2- both writings to the db must take place within the same transaction (we tested writing each object in a separate transaction and it did not work) In our working environment and because of some developement requirements, we can not satisfy to condition 2, which means, in our case, we can write only one object in a transaction. Is it possible to write nested and independant objects to the db with a restriction that only one object can be written in a transaction? any help would be greatly appreciated. Thanks. wy __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
