cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Singletons in Cayenne and problems. Can I use multiple transactions?
Date Wed, 02 Dec 2009 07:31:01 GMT
Sure. I am fine with keeping it as well. I guess this is mainly a  
documentation issue - it has to be mentioned that this is just one  
possible usage pattern, not *the* way to access ObjectContext.

Andrus

On Dec 1, 2009, at 8:51 PM, Michael Gentry wrote:

> I agree with Andrey here.  I think it is better for Cayenne to provide
> this in a consistent/standardized way for those who want it rather
> than requiring people to roll their own each time.  Those who need
> something more complex can implement something more complex, but let's
> keep the common case easy/standard.
>
> mrg
>
>
> On Tue, Dec 1, 2009 at 1:29 PM, Andrey Razumovsky
> <razumovsky.andrey@gmail.com> wrote:
>> 2009/12/1 Andrus Adamchik <andrus@objectstyle.org>
>>
>>> This is just a convenience in Cayenne. Nobody's forced to use it.  
>>> I will go
>>> as far as to suggest to remove it from Cayenne 3.1 as a built-in  
>>> feature,
>>> and just document it as a possible design pattern in a user  
>>> application.
>>>
>>>
>> I'm -1. We can see some profit in moving it from BC class (say, to  
>> new
>> "Cayenne" utility). But I'm sure it is widely used by everyone who  
>> uses
>> Cayenne in web apps (or maybe even in desktop apps)
>>
>


Mime
View raw message