|
|
|
Modified version that dumps FieldNames instances to stdout for easy checking.
I cannot reproduce the described behavior. I have attached a modified version of AdapterTest which dumps all FieldNames instances to stdout at the indicated source locations.
I get the following output: <Output> NO FieldNames in DB 02/06/2007 11:34:30 com.j_spaces.sadapter.GenericPA.Db4oPersistentAdapter initContext INFO: END InitContext() 02/06/2007 11:34:30 com.j_spaces.sadapter.GenericPA.Db4oPersistentAdapter createClassTable INFO: Class SA_DIRECTORY table created 02/06/2007 11:34:30 com.j_spaces.sadapter.GenericPA.Db4oPersistentAdapter insert INFO: ***** Entered insert() SA_DIRECTORY PUT A BRKPOINT HERE. CHECK FIELDNAMES OBJECT IN DB USING OBJECT MANAGER *** DUMP BEGIN *** [com.j_spaces.sadapter.GenericPA.FieldNames@228a02] *** DUMP END *** fvalues len 1 names len 1 02/06/2007 11:34:30 com.j_spaces.sadapter.GenericPA.Db4oPersistentAdapter insert INFO: Insertion of SA_DIRECTORY successfull PUT A BRKPOINT HERE AND CHECK AGAIN USING OBJECT MANAGER. IT HAS VANISHED *** DUMP BEGIN *** [com.j_spaces.sadapter.GenericPA.FieldNames@228a02] *** DUMP END *** *** DUMP BEGIN *** [com.j_spaces.sadapter.GenericPA.FieldNames@228a02] *** DUMP END *** 02/06/2007 11:34:30 com.j_spaces.sadapter.GenericPA.Db4oPersistentAdapter closeContext INFO: Database Closed </Output> The FieldNames instance with identity 228a02 has clearly not vanished. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Test case attachment