Re: Object is not (yet) associated to a database container

Sunil Goyal <[email protected]>
Newsgroups gmane.comp.java.ozone.user
Organization Salzburg Research
Message-ID <[email protected]>
Hi
>> Even when I try to create an object
>> new FooImpl() , this is ok .
>
> No, it's not :-)

You are right. I wrote rather quickly, I mean't it to be ok
in another context, in a sense I don't get an exception -
when I try to do it.

But one won't be able to store it, as later on when you try to access
it results in errors.

Regards
Sunil

> You cannot create an ozone object and then try to store it in the
> database; you can only create an object in the database.
>
> In the real world this means that you should never construct an ozone
> object yourself (by calling the constructor); you should always go
> through database() or the factory method on a proxy or a factory class'
> create() method.
>
> Cheers,
> Leo
>
>



-- 
=====================================================================
Sunil Goyal
New Media Lab
Salzburg Research Forschungsgesellschft m.b.H.
Jakob Haringer-Strasse 5/III | A-5020 Salzburg
T: +43.662.2288-414 | F: +43.662.2288-222
[email protected]
http://www.salzburgresearch.at
======================================================================


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.