[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Object Creation in ozone



On Fri, 11 Aug 2000, Don Berendsen wrote:
> Hi Falko,
> 
> Substituting 'database()' for 'Repository.getDB()' in the constructor of 
> ObjectOneImpl in the example below results in a runtime exception of 'Object 
> is not (yet) associated with a database container. In the example below how 
> would one initiate creation of ObjectTwo from within the constructor of 
> ObjectOne?
That's a FAQ... ;) There is no way to do any database operations inside the
ctor currently.

> This is not an academic question, there are significant reasons for using 
> this construct in my app.
What are those reasons? So far I always found a way around this limitation...


Falko
-- 
______________________________________________________________________
Falko Braeutigam                              mailto:falko@smb-tec.com
SMB GmbH                                        http://www.smb-tec.com