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: Proposal to get rid of ojbConcreteClass
Date Mon, 16 Aug 2004 19:11:06 GMT
hi all,

the fix is in cvs now.

jakob

Jakob Braeuchi schrieb:

> hi thomas,
> 
> 
> Thomas Dudziak schrieb:
> 
>> Jakob Braeuchi wrote:
>>
>>> it is my intention to keep things as backward compatible as possible.
>>> when reading the repository.xml i'll build a selector when i find a 
>>> field-descriptor with the magic name 'ojbConcreteClass'. the selector 
>>> will point to thes field-descriptor and the value will be the name of 
>>> the class.
>>
>>
>>
>> I may be a bit slow today, but what is the purpose of the value 
>> attribute ? Wouldn't it suffice to add a boolean property to the 
> 
> 
> the value attribute allows the user to use an arbitrary value to 
> discriminate the class. today we always use the name of the class, which 
> is bad for refactoring.
> 
>> field-descriptor that denotes the 'ojbConcreteClass' field, e.g. a 
>> 'defines-concrete-class' property ?
> 
> 
> imo the selector (or discriminator) is more than an ordinary 
> field-descriptor.
> 
> jakob
> 
>> Also, please add at least a deprecation warning (log.warn or higher) 
>> when encountering a magic name 'ojbConcreteClass' so that users will 
>> actually switch to the new structure.
>>
>> Tom
>>
>> ---------------------------------------------------------------------
>> 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