An example from ScarabModule.save():

                    // insert a row into the id_table.
                    Criteria criteria = new Criteria(
                        ScarabModulePeer.getTableMap()
                        .getDatabaseMap().getName(), 5)
                        .add(IDBroker.TABLE_NAME, getCode())
                        .add(IDBroker.NEXT_ID, 1)
                        .add(IDBroker.QUANTITY, 1);
                    BasePeer.doInsert(criteria);

john mcnally

Jon Stevens wrote:
> 
> We need to update the IDBroker in the jakarta-turbine-torque package to use
> the Peer system...right now, it doesn't seem to do that. Therefore, it is
> impossible to use Criteria to insert new rows into the ID_TABLE and can only
> be done through hard coding SQL. Yucky.
> 
> I'm putting this out there in case someone wants to implement it.
> 
> -jon
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to