> John McNally wrote:
> > 2.  When I first wrote BasePeer, I wrote it so that updates/inserts
could be
> > made to several tables with one call to doUpdate/doInsert.
    ...
> > Would anyone object to removing
> > this feature?
> >
>
> Although I havent used it yet, I can forsee some areas in my app where
> it would definitely come in handy.  Is there a way that this
> functionality can be preserved?
>

I think it has already been broken somewhat by later additions to BasePeer,
but if it seems like a good feature I will work towards making it functional
again.

What is really gained by being able to write:

Criteria criteria = new Criteria(10)
    .add("Table1.col1", "a")
    .add("Table2.col1", "b")
    .add("Table2.col2", "c")
    .add("Table2.col3", "d")
    .add("Table3.col1", "c");
BasePeer.doInsert(criteria);

Over

Criteria criteria = new Criteria(5)
    .add("Table1.col1", "a");
BasePeer.doInsert(criteria);

criteria.clear();
criteria.add("Table2.col1", "b")
    .add("Table2.col2", "c")
    .add("Table2.col3", "d");
BasePeer.doInsert(criteria);

criteria.clear();
criteria.add("Table3.col1", "c");
BasePeer.doInsert(criteria);

?

Or is there some other benefit?




------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to