You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by Andrey Razumovsky <ra...@gmail.com> on 2009/03/17 21:44:44 UTC

ROP & Classics hierarchies union?

Hi,

I've jumped into this earlier, and now again, CayenneContext-related classes
are very-very much like DataContexts-related. For instance, today I had to
put same changes into ToManyList and PersistentObjectList. That code screams
refactoring... But this may result in API changes (e.g. ToManyList and
PersistentObjectList are public classes, so I have to worry about that).
Does anyone have something against some refactoring&unification?

Andrey

Re: ROP & Classics hierarchies union?

Posted by Andrey Razumovsky <ra...@gmail.com>.
I've actually already committed ToManyList. Now it extends
PersistentObjectList and I like it much more. I tried to be as cautious as
possible to not to break anything

2009/3/18 Andrus Adamchik <an...@objectstyle.org>

> I am +1 on the effort at unification of the client and server API's. There
> are some edge cases here and there that prevented us from doing this
> earlier, but this work needs to be done sooner or later, and I am glad
> Andrey is jumping on it.
>
> Andrus
>
>
>
> On Mar 17, 2009, at 10:44 PM, Andrey Razumovsky wrote:
>
>> Hi,
>>
>> I've jumped into this earlier, and now again, CayenneContext-related
>> classes
>> are very-very much like DataContexts-related. For instance, today I had to
>> put same changes into ToManyList and PersistentObjectList. That code
>> screams
>> refactoring... But this may result in API changes (e.g. ToManyList and
>> PersistentObjectList are public classes, so I have to worry about that).
>> Does anyone have something against some refactoring&unification?
>>
>> Andrey
>>
>
>

Re: ROP & Classics hierarchies union?

Posted by Andrus Adamchik <an...@objectstyle.org>.
I am +1 on the effort at unification of the client and server API's.  
There are some edge cases here and there that prevented us from doing  
this earlier, but this work needs to be done sooner or later, and I am  
glad Andrey is jumping on it.

Andrus


On Mar 17, 2009, at 10:44 PM, Andrey Razumovsky wrote:
> Hi,
>
> I've jumped into this earlier, and now again, CayenneContext-related  
> classes
> are very-very much like DataContexts-related. For instance, today I  
> had to
> put same changes into ToManyList and PersistentObjectList. That code  
> screams
> refactoring... But this may result in API changes (e.g. ToManyList and
> PersistentObjectList are public classes, so I have to worry about  
> that).
> Does anyone have something against some refactoring&unification?
>
> Andrey