Anyone?


Stijn de Witt wrote:

Ok, I changed the cache settings in repository_database.xml to ObjectCacheEmptyImpl, like this:

<object-cache class="org.apache.ojb.broker.cache.ObjectCacheEmptyImpl"/>
<!--object-cache class="org.apache.ojb.broker.cache.ObjectCacheDefaultImpl">
<attribute attribute-name="timeout" attribute-value="900"/>
<attribute attribute-name="autoSync" attribute-value="true"/>
</object-cache-->


But it didn't help one bit....

-Stijn


Stijn de Witt wrote:

It's the strangest thing, if I remove the submit test and only do the query, NONE of the objects are ok...This smells like a caching problem to me...


Stijn de Witt wrote:

I am having a strange problem. I have a class Person, a class Candidate that extends Person and a class Address that has a many-to-one relationship with Person. I created a testcase that inserts a candidate with lastName=="Witt", with a homeAddress, and then does a query for all objects with that lastName. The first time everything seemed fine, but after repeated runs, although the object is inserted ok each time, and the query returns exactly the right number of objects, only the last object is materialized. The first objects have all fields set to NULL....? (The null fields in the last object are ok, I just never set them).

Could you look at the code and results below? I am sorry this has become a lengthy post.

Thanks in advance for any help,

-Stijn


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



Reply via email to