有沒有人知道如何讓db4o在以下場景中工作?我試過cascadeOnUpdate()但失敗了。 class Class1 {
int field;
}
class Class2 {
Class1[] clsArray;
}
//I usually change objects of Class2 in this way
Class2 obj = getFromCo
我用了一個特定的類db4o的,我有這個db4o的使用(工程確定): public class xxxxx{
public Db4oHelper db4oHelper = null;
public void xxxx (Context ctx){
dbHelper(context);
//operations...
}
但現在我需要使用db4o的不同
我正在使用db4o 8.0。 db4odatabase文件大小爲21MB。 數據庫中包含以下對象。 User : There is 1 user in db.
PostedMessage : There are 10000 postedMessages in db.
我刪除了所有10000個發佈的消息。然後我嘗試對db4o數據庫進行碎片整理。以下代碼用於碎片整理。 private void