cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Gentry" <blackn...@gmail.com>
Subject Re: DataContext - new method wanted
Date Wed, 04 Jun 2008 13:36:25 GMT
This seems reasonable.  I'll open a ticket for it later.

Thanks,

/dev/mrg


On Wed, Jun 4, 2008 at 8:34 AM, Borut BolĨina <borut.bolcina@gmail.com> wrote:
> Hello,
>
> If I have a collection of transient CayenneDataObjects with no relations
> between any of them and want to persist them, it would be convenient to
> "say":
>
> context.registerObjects(myCayenneDataObjects); // sets state to NEW
> context.commitChanges();
>
> Now there is only a singular form of this method
> http://cayenne.apache.org/doc/api/org/apache/cayenne/ObjectContext.html#registerNewObject(java.lang.Object)
>
> But probably there is a reason for not having this method.
>
> Cheers,
> Borut
>
Mime
View raw message