cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: AW: Help: getting NPE at ObjectStoreGraphDiff.preprocess
Date Wed, 07 Mar 2007 13:39:04 GMT

On Mar 7, 2007, at 9:19 AM, Peter Schröder wrote:

> i am not quite sure, but i think that you have to use
>
> context.createAndRegister(MyType.class);
>
> instead of
>
> context.newObject(MyType.class);

No, the two are equivalent. In fact the first (older) form is  
deprecated in 3.0

Andrus


Mime
View raw message