db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Braeuchi <jbraeu...@gmx.ch>
Subject Re: Identity.realClass set to abstract class?!
Date Mon, 08 Sep 2003 20:37:28 GMT
hi olli,

just a thought: do we really need identity when we have the owners and 
their children ?

jakob

Jakob Braeuchi wrote:

> hi olli,
>
> oliver.matz@ppi.de wrote:
>
>> Hello Jakob,
>>
>>  
>>
>>> -----Original Message-----
>>> From: Jakob Braeuchi [mailto:jbraeuchi@gmx.ch]
>>>
>>> i fixed this in Collection- and ReferencePrefetcher.
>>>   
>>
>>
>> I feel a bit uncomfortable with it, because it
>> might mean a dramatic loss of performance in some cases,
>> as I mentioned in my response to Armin (this thread):
>>  
>>
> i'm aware of this problem. but if the creation of the identity was 
> clearly wrong (as written by thomas) then we need to do something.
>
>>  
>>
>>> Assume, for example, that there is one single top-level
>>> class that all other persistence-capable classes
>>> extend.  Then, with [this] change, resolving a reference will result 
>>> in a search through all tables.
>>>   
>>
>>
>> Don't you agree?
>>
>> For the future, I would like to propose junit tests
>> that verify that the number of generated SQL statements
>> has not increased.  We have such tests in our project,
>> using p6spy with a test-specific logger to count SQL statements.
>>
> this is a good idea.
>
> jakob
>
>>
>> Olli
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
>> For additional commands, e-mail: ojb-dev-help@db.apache.org
>>
>>
>>  
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message