Hi,

actually changing the code is in this case very very difficult, so the question is, can this be accomplished using ojb? Something like making reference-descriptor readonly or something?

Problem, I save referenceId and ojb cache won't make connection between id and reference object.

Thanks, Joose

28.10.2004 kello 11:17, Joose Vettenranta kirjoitti:

I think I know why this is happening.

I save to tableB just a id of tableC not the object of tableC.

So I have to change my program so it saves objectC and not id of objectC.

- Joose

28.10.2004 kello 10:40, Joose Vettenranta kirjoitti:

Hi,

I think I found a bug from Cache.

I Think I have like this:

Table A [1:n] Table B [1:1] Table C [1:n] Table D

when using DefaultCacheImpl or ObjectCachePerClassImpl it works funny.

When I store data it works ok, data is stored to database, but when I want to retrieve data from database I just get TableA and TableB on the object I just inserted. But when I restart my application, all of the data is loaded like it should. When using ObjectCachePerBrokerImpl it works ok, but then it won't cache that much.

So data is not retrieved like it should when I retrieve data after inserting it, unless I restart tomcat in meanwhile. It looks very much as a bug.

So when I insert data only table A and table B is retrieved, but when retrieving data after restart, also C and D is loaded.

In repository.xml in every reference-descriptor and collection-descriptor there is auto-retrieve="true"

Is this a bug?

Using ojb 1.0.1

Thanks, Joose

--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * [EMAIL PROTECTED] * +358 44 561 0270 *


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


--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * [EMAIL PROTECTED] * +358 44 561 0270 *


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


--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * [EMAIL PROTECTED] * +358 44 561 0270 *


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



Reply via email to