You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by Malcolm Edgar <ma...@gmail.com> on 2009/04/14 11:47:37 UTC
Depreciated DataContext.getThreadDataContext()
With JPA off the roadmap can we remove the Java depreciation from
DataContext.getThreadDataContext() as this generates a ton of warnings
in our code base and the DataContext has important methods which just
aren't available on ObjectContext or BaseContext.
regards Malcolm Edgar
Re: Depreciated DataContext.getThreadDataContext()
Posted by Andrey Razumovsky <ra...@gmail.com>.
Yeah, we'd better add more functionality to ObjectContext/BaseContext. The
goal is to minimize usage of DataContext class and use abstractions instead
2009/4/14 Robert Zeigler <ro...@roxanemy.com>
> Deprecation of getThreadDataContext is unrelated to JPA support.
> Use BaseContext.getThreadObjectContex() and cast it to DataContext.
>
> Robert
>
>
> On Apr 14, 2009, at 4/144:47 AM , Malcolm Edgar wrote:
>
> With JPA off the roadmap can we remove the Java depreciation from
>> DataContext.getThreadDataContext() as this generates a ton of warnings
>> in our code base and the DataContext has important methods which just
>> aren't available on ObjectContext or BaseContext.
>>
>> regards Malcolm Edgar
>>
>
>
Re: Depreciated DataContext.getThreadDataContext()
Posted by Andrus Adamchik <an...@objectstyle.org>.
> Deprecation of getThreadDataContext is unrelated to JPA support.
Absolutely correct.
Andrus
On Apr 14, 2009, at 5:02 PM, Robert Zeigler wrote:
> Deprecation of getThreadDataContext is unrelated to JPA support.
> Use BaseContext.getThreadObjectContex() and cast it to DataContext.
>
> Robert
>
> On Apr 14, 2009, at 4/144:47 AM , Malcolm Edgar wrote:
>
>> With JPA off the roadmap can we remove the Java depreciation from
>> DataContext.getThreadDataContext() as this generates a ton of
>> warnings
>> in our code base and the DataContext has important methods which just
>> aren't available on ObjectContext or BaseContext.
>>
>> regards Malcolm Edgar
>
>
Re: Depreciated DataContext.getThreadDataContext()
Posted by Robert Zeigler <ro...@roxanemy.com>.
Deprecation of getThreadDataContext is unrelated to JPA support.
Use BaseContext.getThreadObjectContex() and cast it to DataContext.
Robert
On Apr 14, 2009, at 4/144:47 AM , Malcolm Edgar wrote:
> With JPA off the roadmap can we remove the Java depreciation from
> DataContext.getThreadDataContext() as this generates a ton of warnings
> in our code base and the DataContext has important methods which just
> aren't available on ObjectContext or BaseContext.
>
> regards Malcolm Edgar