fixing returned records from memory store to be clones

This commit is contained in:
2023-03-30 19:24:13 -05:00
parent 7e368c6ff9
commit 5babdd11b6

View File

@ -173,8 +173,9 @@ public class MemoryRecordStore
////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////
// make sure we're not giving back records that are all full of associations... // // make sure we're not giving back records that are all full of associations... //
////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////
qRecord.setAssociatedRecords(new HashMap<>()); QRecord recordToReturn = new QRecord(qRecord);
records.add(qRecord); recordToReturn.setAssociatedRecords(new HashMap<>());
records.add(recordToReturn);
} }
} }
} }