01private static void savePilots() throws IOException { 02
System.out.println("Saving Pilot objects without Pilot class on the server"); 03
ObjectContainer oc = Db4o.openClient("localhost", 0xdb40, "db4o", 04
"db4o"); 05
try { 06
for (int i = 0; i < COUNT; i++) { 07
oc.set(new Pilot("Pilot #" + i, i)); 08
} 09
10
} finally { 11
oc.close(); 12
} 13
}
You can check the saved objects using ObjectManager or the querying examples.