Hi,

I noticed that when you needed to store objects, you had to issue 
clearCache() to the persistence broker. Why is this the case? I vaguely 
recall that the same objects (different objects but from the same class) 
are differentiated by their OID's, but it seems not the case.

Somewhere in my code, I did the following (in a loop):
kategori = new Kategori();
kategori.setIdKategori("test-id");
kategori.setNama("test-nama");
//broker.clearCache();
broker.store(kategori);

class Kategori {
 private int id_kategori;
 protected String idKategori;
 protected String nama;
}

..and kategori object wasn't stored for the second time (third, etc). 
It worked for the first time only. It would work correctly if the
comment were removed. So, it seems that objects are differentiated in
the cache by their names only. Are they?

Thanks in advance,
Oki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to