DataContext - new method wanted

From: Borut Bolčina (borut.bolcin..mail.com)
Date: Wed Jun 04 2008 - 08:34:18 EDT

  • Next message: Michael Gentry: "Re: DataContext - new method wanted"

    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



    This archive was generated by hypermail 2.0.0 : Wed Jun 04 2008 - 08:34:59 EDT