Vishal, please no attachments to a mailing list like this. Just include the relevant code fragments (actual code, mapping file, etc.) within the body of an email when making your inquiry.
Regards Werner -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Montag, 05. September 2005 16:15 An: [email protected] Betreff: [castor-dev] Using access="read-only" in the mapping file Hi, I have an object that is related to another object which loads data from a table whose contents are static. For these relations, I have defined the static data classes as 'access="read-only"' in my mapping file - to avoid any problems with locking the rows with static data in the DB. Now, in my main class, I want to change the reference to the static object at runtime but I am getting the following exception: [test]# java TestReadOnly GENERAL EXCEPTION - OUTSIDE BLOCK!!! org.exolab.castor.jdo.PersistenceException: Object, [EMAIL PROTECTED], links to another object, [EMAIL PROTECTED] that is not loaded/updated/created in this transaction at org.exolab.castor.persist.ClassMolder.preStore(ClassMolder.java:1326) at org.exolab.castor.persist.LockEngine.preStore(LockEngine.java:725) at org.exolab.castor.persist.TransactionContext.prepare(TransactionContext. java:1464) at org.exolab.castor.jdo.engine.DatabaseImpl.commit(DatabaseImpl.java:518) at TestReadOnly.main(TestReadOnly.java:28) [test]# The test program and other associated files are attached. Any help about how I can change the referenced object in the main class would be appreciated. Regards, Vishal. Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

